- Update a content item
Partially updates a content item. Only the properties and fields explicitly present in the request body are changed.
The partial update input.
The content item name. When supplied and different from the current name, the item is renamed.
The content item field values. Each field's Id must match a field defined on the template (content type). This can be found by calling the Retrieve a Content Type endpoint in the Content Types API. When null or empty, existing field values are left unchanged and will not be updated.
- Production serverhttps://edge-platform.sitecorecloud.io/authoring/api/v1/content-items/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
- application/json
- text/json
- application/*+json
curl -i -X PATCH \
'https://edge-platform.sitecorecloud.io/authoring/api/v1/content-items/76036f5e-cbce-46d1-af0a-4143f9b557aa?environmentId=main&language=en&version=1' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"name": "MyContentItem",
"displayName": "My Content Item",
"fields": [
{
"id": "75577384-3C97-45DA-A847-81B00500E25",
"value": {
"title": "sample title"
}
}
]
}'Successful operation
Unique revision identifier for the content item. Used as an optimistic concurrency guard during save or update operations. The value is updated whenever the item changes, allowing clients to verify that they are updating the latest revision.
The allowed content types for the content item.
{ "isFallback": true, "revision": "37265ed7-85cf-4876-9c09-b6590fc6cf3a", "fields": [ { … } ], "allowedContentTypes": [ { … } ], "id": "37265ed7-85cf-4876-9c09-b6590fc6cf3a", "name": "My content item", "displayName": "My content item", "language": "en", "version": 1, "templateId": "97265ed7-85cf-4876-9c09-b6590fc6cf3a", "path": "/sitecore/content/Home", "permissions": { "canAdmin": true, "canWrite": true, "canCreate": true, "canDelete": true, "canRename": true, "canRead": true, "canPublish": true, "canDuplicate": true, "canWriteLanguage": true }, "system": { "created": "2024-01-15T10:30:00Z", "createdBy": "sitecore admin", "updated": "2024-01-15T10:30:00Z", "updatedBy": "sitecore admin" } }