Documents
Add a new document
Add a new data object to the given <strong>{parentId}</strong>. <br> The <strong>{parentId}</strong> must be an ID of a folder or another data object. See the full description of request fields with the schema <strong>DocumentAdd</strong>
post/pimcore-studio/api/documents/add/{parentId}
Request
- Base URL: / (relative, and the document was published on a file host, not at the API’s origin)
- URL: /pimcore-studio/api/documents/add/{parentId}
- Auth: none declared
Path parameters
parentIdinteger required
Example:83
ParentId of the document
Request body
Example request
{
"key": "my_new_document",
"type": "page",
"title": "Some page title",
"navigationName": "Some navigation name",
"docTypeId": "page",
"template": "default",
"translationsSourceId": 33,
"language": "en",
"inheritanceSourceId": 33
}Response
ID of added document
Example response
{
"id": 66
}Changes
No recorded changes to this operation across all 2 revisions of this API.