Sitecore API catalog/Components API//
- Generate a draft content type suggestion
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
Activate a component draft
Generate a component draft suggestion
Generate a draft content...
Generates a content type suggestion from all draft variant code by calling the AI Service.
Security
Bearer
Optional payload containing Rendering Host atoms to enhance the AI model suggestion alongside variant code.
- Production serverhttps://edge-platform.sitecorecloud.io/authoring/api/v1/components/drafts/{id}/model-suggestion
- 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/model-suggestion?environmentId=main' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"atoms": "<button class=\"btn btn-primary\">Submit</button>"
}'Response
{ "name": "Promo", "description": "Draft content type", "fieldGroups": [ { … } ] }