Sitecore API catalog/Content Items API//
- Create a content item version
Retrieve content item hierarchy children
List content items
Create a content item
Retrieve a content item
Update a content item
Replace a content item
Delete a content item
Validate a content item
List content item versions
Delete a content item version
List live content items
Retrieve content item hierarchy
Translate a content item.
Create a content item ver...
Creates a new version of the specified content item in the specified language by copying values from a source version. If baseVersion is omitted, the latest version is used as the source.
Security
Bearer
Input for creating a new content item version.
Source version to copy field values from. If omitted, the latest version is used.
Example:1
- Production serverhttps://edge-platform.sitecorecloud.io/authoring/api/v1/content-items/{id}/versions
- 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/content-items/E591251E-C34B-4DF4-9DC1-CA0C27587F90/versions?environmentId=main' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"language": "en",
"baseVersion": 1,
"versionName": "Autumn campaign"
}'Successful operation
The content item identifier, unchanged across versions.
Example:"3875AC96-8ECF-44AE-8E25-851068B373CE"
Response
{ "id": "3875AC96-8ECF-44AE-8E25-851068B373CE", "language": "en", "version": 3, "versionName": "Autumn campaign", "revision": "37265ed7-85cf-4876-9c09-b6590fc6cf3a", "system": { "created": "2024-01-15T10:30:00Z", "createdBy": "sitecore admin", "updated": "2024-01-15T10:30:00Z", "updatedBy": "sitecore admin" }, "permissions": { "canAdmin": true, "canWrite": true, "canCreate": true, "canDelete": true, "canRename": true, "canRead": true, "canPublish": true, "canDuplicate": true, "canWriteLanguage": true } }