Updates an existing content item, including its fields and language.
Security
HTTPBearer
Any of:
A key-value map of fields to update for the content item. If null, fields will not be updated.
Whether to create a new version of the content item.
Default:false
Example:false
Example:"AEO optimization"
Any of:
The name for the new version, displayed beside the version number. This is only applicable if createNewVersion is true.
string
- Production serverhttps://edge-platform.sitecorecloud.io/stream/ai-agent-api/api/v1/content/{itemId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
https://edge-platform.sitecorecloud.io/stream/ai-agent-api/api/v1/content/3f2504e0-4f89-11d3-9a0c-0305e82c3301 \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-H 'x-sc-job-id: job-1234' \
-d '{
"fields": {},
"language": "en",
"createNewVersion": false,
"versionName": "AEO optimization",
"siteName": "skate-park"
}'Successful response
The unique identifier of the content item.
Example:"3f2504e0-4f89-11d3-9a0c-0305e82c3301"
The path to the content item.
Example:"/content/items/3f2504e0-4f89-11d3-9a0c-0305e82c3301"
Response
{ "itemId": "3f2504e0-4f89-11d3-9a0c-0305e82c3301", "name": "Sample Content Item", "path": "/content/items/3f2504e0-4f89-11d3-9a0c-0305e82c3301", "updatedFields": {}, "language": "en", "version": 3 }