Sitecore API catalog/Components API//
- Generate a component draft 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
Generate a draft content type suggestion
Activate a component draft
Generate a component draf...
Generates a component draft suggestion from a natural-language prompt.
Security
Bearer
The prompt describing the desired component.
- Production serverhttps://edge-platform.sitecorecloud.io/authoring/api/v1/components/drafts/suggestions
- 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/suggestions?environmentId=main' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"prompt": "A full-width banner with a background image, headline, subtext, and a call-to-action button"
}'Successful operation
The suggested system name of the component, formatted in PascalCase without spaces.
Example:"HeroBanner"
Response
{ "name": "HeroBanner", "displayName": "Hero Banner", "category": "Page Content", "description": "A full-width banner section featuring a background image, headline, subtext, and a call-to-action button." }