Generate a draft content type suggestion

Request

Generates a content type suggestion from all draft variant code by calling the AI Service.

Security
Bearer
Path
idstringrequired

The component draft identifier.

Example:2492bac4-da07-4c86-87f0-9873d40e2276
Query
environmentIdstring

The environment identifier.

Example:environmentId=main
Bodyrequired

Optional payload containing Rendering Host atoms to enhance the AI model suggestion alongside variant code.

atomsstring or null

Raw atoms payload from Rendering Host, representing small reusable UI building blocks.

Example:"<button class=\"btn btn-primary\">Submit</button>"
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>"
  }'

Responses

Successful operation

Bodyapplication/json
namestring or null

The content type draft name.

Example:"Promo"
descriptionstring or null

The description of the content type draft.

Example:"Draft content type"
fieldGroupsArray of objects or null(FieldGroupDraft)

The content type draft field groups.

Response
{ "name": "Promo", "description": "Draft content type", "fieldGroups": [ { … } ] }