Sitecore API catalog/Components API//
- Activate a component draft
Retrieve a component draft
Update a component draft
Update a component draft
Delete a component draft
List component drafts
Create a component draft
List components
Create a component
List component summaries
Retrieve a component
Update a component
Retrieve component metadata
Retrieve component variant metadata by ID
Get sites where specified component is allowed
Generate a draft content type suggestion
Generate a component draft suggestion
Activate a component draf...
Activates an existing component draft by creating the corresponding content type (when present), component, and variants, then permanently removes the draft from storage. Activation is a one-way operation — once successful the draft is no longer retrievable. When activation availability is omitted, the endpoint falls back to the draft's stored availability. If neither activation input nor the stored draft defines site assignments, the component is created without site assignments.
Security
Bearer
Optional availability overrides and variant names to activate.
The names of the draft variants that should be activated.
Example:
[ "Default", "Dark" ]
- Production serverhttps://edge-platform.sitecorecloud.io/authoring/api/v1/components/drafts/{componentDraftId}/activation
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
- application/json
- text/json
- application/*+json
curl -i -X POST \
'https://edge-platform.sitecorecloud.io/authoring/api/v1/components/drafts/2492bac4-da07-4c86-87f0-9873d40e2276/activation?environmentId=main' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"availability": {
"sites": [
"4f2d7c8b9e1a4f0d8f3c2b176a4e9d22",
"c1378a9fe2bd4e56a1c4d9f87b33a6c4"
],
"placeholders": [
"4f2d7c8b9e1a4f0d8f3c2b176a4e9d22",
"c1378a9fe2bd4e56a1c4d9f87b33a6c4"
],
"pageModels": [
"4f2d7c8b9e1a4f0d8f3c2b176a4e9d22",
"c1378a9fe2bd4e56a1c4d9f87b33a6c4"
]
},
"variantNames": [
"Default",
"Dark"
]
}'Successful operation
Response
{ "componentId": "2492bac4-da07-4c86-87f0-9873d40e2276", "contentModelId": "2f34355e-c52d-450e-b1b9-d4e9cbe64af2" }