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

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: OK

{&quot;templateId&quot;:&quot;aliqua&quot;,&quot;name&quot;:&quot;officia cupidatat voluptate velit&quot;,&quot;description&quot;:&quot;labore&quot;,&quot;labels&quot;:[{&quot;prefix&quot;:&quot;anim&quot;,&quot;name&quot;:&quot;in cupidatat cillum veniam Duis&quot;,&quot;id&quot;:&quot;cillum aliqua sed eiusmod enim&quot;,&quot;label&quot;:&quot;cupidatat&quot;},{&quot;prefix&quot;:&quot;elit minim&quot;,&quot;name&quot;:&quot;vol&quot;,&quot;id&quot;:&quot;sit voluptate &quot;,&quot;label&quot;:&quot;eu sit qui&quot;}],&quot;templateType&quot;:&quot;amet&quot;,&quot;_expandable&quot;:{&quot;body&quot;:&quot;exercitation sunt&quot;},&quot;_links&quot;:{},&quot;body&quot;:{&quot;value&quot;:&quot;reprehend&quot;,&quot;representation&quot;:&quot;export_view&quot;,&quot;_expandable&quot;:{&quot;content&quot;:&quot;ex esse enim irure amet&quot;},&quot;embeddedContent&quot;:[{&quot;entityId&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;entity&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}},{&quot;entityId&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;entity&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}}],&quot;webresource&quot;:{&quot;keys&quot;:[{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}],&quot;contexts&quot;:[{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}],&quot;uris&quot;:{&quot;all&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;css&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;js&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}},&quot;tags&quot;:{&quot;all&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;css&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;data&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;js&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}},&quot;superbatch&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}}}}