Creates a new content item under the specified parent, which is also a content item. Content items are instances of a content type (specified in this call by templateId)
Security
Bearer
The creation input.
The identifier of the content item that is the parent of the new content item.
Example:"{110D559F-DEA5-42EA-9C1C-8A5DF7E70EF9}"
The content type identifier.
Example:"{76036F5E-CBCE-46D1-AF0A-4143F9B557AA}"
- Production serverhttps://edge-platform.sitecorecloud.io/authoring/api/v1/content-items
- 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?environmentId=main' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"name": "MyContentItem",
"displayName": "My Content Item",
"parentId": "{110D559F-DEA5-42EA-9C1C-8A5DF7E70EF9}",
"templateId": "{76036F5E-CBCE-46D1-AF0A-4143F9B557AA}",
"language": "en",
"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.
Example:"37265ed7-85cf-4876-9c09-b6590fc6cf3a"
Response
{ "isFallback": true, "revision": "37265ed7-85cf-4876-9c09-b6590fc6cf3a", "fields": [ { … } ], "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" } }