Create content template
POST {{baseUrl}}/api/template
Creates a new content template. Note, blueprint templates cannot be created via the REST API.
Permissions required: 'Admin' permission for the space to create a space template or 'Confluence Administrator' global permission to create a global template.
Request Body
{"name"=>"<string>", "templateType"=>"<string>", "body"=>{"storage"=>{"value"=>"<string>", "representation"=>"<string>"}}, "description"=>"<string>", "labels"=>[{"prefix"=>"dolore deserunt ut est anim", "name"=>"occaecat quis culpa ad non", "id"=>"laborum nisi ipsum", "label"=>"labore laborum sint"}, {"prefix"=>"proident tempor", "name"=>"incididunt cupidatat ea", "id"=>"non dolore quis proident", "label"=>"labore sint"}], "space"=>{"key"=>"<string>"}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |
RESPONSES
status: OK
{"templateId":"aliqua","name":"officia cupidatat voluptate velit","description":"labore","labels":[{"prefix":"anim","name":"in cupidatat cillum veniam Duis","id":"cillum aliqua sed eiusmod enim","label":"cupidatat"},{"prefix":"elit minim","name":"vol","id":"sit voluptate ","label":"eu sit qui"}],"templateType":"amet","_expandable":{"body":"exercitation sunt"},"_links":{},"body":{"value":"reprehend","representation":"export_view","_expandable":{"content":"ex esse enim irure amet"},"embeddedContent":[{"entityId":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"entity":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},{"entityId":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"entity":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}}],"webresource":{"keys":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}],"contexts":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}],"uris":{"all":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"css":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"js":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},"tags":{"all":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"css":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"data":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"js":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},"superbatch":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}}}}