Bundle Headless Documents

Create a new template

Create a new template with the specified name. <br> The name must be unique and not already used by an existing template.

post/pimcore-studio/api/bundle/headless-documents/templates

Request

  • Base URL: / (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /pimcore-studio/api/bundle/headless-documents/templates
  • Auth: none declared

Request body

namestring required

Name of the template

Example request

{
  "name": "Simple"
}

Response

Created template details as JSON

additionalAttributesobject

AdditionalAttributes

idstring required

Id of template

namestring required

Name of template

contentstring required

YAML-formatted string of template content

writeableboolean required

Is configuration writeable

Example response

{
  "id": "Simple",
  "name": "Simple",
  "content": "\"layout: simple\\ngroup: null\\ncontent:\\n\"",
  "writeable": true
}

Changes

No recorded changes to this operation across all 2 revisions of this API.