Creates a new content item using the specified template and field values.
Security
HTTPBearer
The unique identifier of the template used to create the content item.
Example:"9f8c7e6d-5b4a-4c3d-8e7f-1a2b3c4d5e6f"
The unique identifier of the parent item.
Example:"9f8c7e6d-5b4a-4c3d-8e7f-1a2b3c4d5e6f"
- Production serverhttps://edge-platform.sitecorecloud.io/stream/ai-agent-api/api/v1/content/create
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
- object
- null
curl -i -X POST \
https://edge-platform.sitecorecloud.io/stream/ai-agent-api/api/v1/content/create \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-H 'x-sc-job-id: job-1234' \
-d '{
"templateId": "9f8c7e6d-5b4a-4c3d-8e7f-1a2b3c4d5e6f",
"name": "New Promo",
"parentId": "9f8c7e6d-5b4a-4c3d-8e7f-1a2b3c4d5e6f",
"language": "en",
"fields": {}
}'Successful response
The unique identifier of the created content item.
Example:"3f2504e0-4f89-11d3-9a0c-0305e82c3301"
The path of the created content item.
Example:"/sitecore/layout/Renderings/Feature/JSS Experience Accelerator/Page Content/Promo/New Promo"
The unique identifier of the template used for the content item.
Example:"9f8c7e6d-5b4a-4c3d-8e7f-1a2b3c4d5e6f"
Response
{ "itemId": "3f2504e0-4f89-11d3-9a0c-0305e82c3301", "name": "New Promo", "path": "/sitecore/layout/Renderings/Feature/JSS Experience Accelerator/Page Content/Promo/New Promo", "templateId": "9f8c7e6d-5b4a-4c3d-8e7f-1a2b3c4d5e6f", "version": 1 }