Retrieves a component draft by id.
Security
Bearer
- Production serverhttps://edge-platform.sitecorecloud.io/authoring/api/v1/components/drafts/{componentDraftId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
curl -i -X GET \
'https://edge-platform.sitecorecloud.io/authoring/api/v1/components/drafts/2492bac4-da07-4c86-87f0-9873d40e2276?environmentId=main' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Successful operation
The identifier of the component draft.
Example:"2492bac4-da07-4c86-87f0-9873d40e2276"
The component draft description.
Example:"A promo component is a content block designed to showcase promotions using a combination of text and visuals"
The component draft rendering parameters.
Example:
{ "ButtonText": "Click me!" }
The component draft settings.
Example:
{ "IsRenderingsWithDynamicPlaceholders": "true", "RandomNumber": "10" }
The variant drafts associated with this component draft.
Response
{ "id": "2492bac4-da07-4c86-87f0-9873d40e2276", "name": "Hero Banner", "displayName": "Banner", "description": "A promo component is a content block designed to showcase promotions using a combination of text and visuals", "category": { "id": "ae070691-099d-4081-856c-4c4a7e3543df", "name": "Page Content", "path": "/sitecore/content/Tenant/Site/Home/Categories/Page-Content" }, "modelId": "dfed4457-d760-457a-bec1-c0dccdc44381", "renderingParameters": { "ButtonText": "Click me!" }, "settings": { "IsRenderingsWithDynamicPlaceholders": "true", "RandomNumber": "10" }, "system": { "createdAt": "2023-01-01T00:00:00Z", "createdBy": "sitecore\\admin", "updatedAt": "2023-01-01T00:00:00Z", "updatedBy": "sitecore\\admin" }, "contentModel": { "name": "Promo", "description": "Draft content type", "fieldGroups": [ … ] }, "variants": [ { … } ], "type": "Code", "availability": { "sites": [ … ], "placeholders": [ … ], "pageModels": [ … ] } }