Update content template

PUT {{baseUrl}}/api/template

Updates a content template. Note, blueprint templates cannot be updated 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

{"templateId"=>"<string>", "name"=>"<string>", "templateType"=>"<string>", "body"=>{"value"=>"<string>", "representation"=>"<string>"}, "description"=>"<string>", "labels"=>[{"prefix"=>"ipsum dolor Excepteur Duis", "name"=>"nulla et ipsum voluptate consectetur", "id"=>"nostrud enim proident cupidatat eu", "label"=>"enim Lorem veniam amet"}, {"prefix"=>"amet", "name"=>"officia adipisicing ut labo", "id"=>"ipsum in tempor", "label"=>"est occaecat magna"}], "space"=>{"key"=>"<string>"}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: OK

{&quot;templateId&quot;:&quot;id ipsum ut&quot;,&quot;name&quot;:&quot;sit dolor sint dolore&quot;,&quot;description&quot;:&quot;magna&quot;,&quot;labels&quot;:[{&quot;prefix&quot;:&quot;fugiat sit Ut in ea&quot;,&quot;name&quot;:&quot;dolor in&quot;,&quot;id&quot;:&quot;aliqua culpa veniam ea&quot;,&quot;label&quot;:&quot;officia tempor ea&quot;},{&quot;prefix&quot;:&quot;exercitation culpa proident&quot;,&quot;name&quot;:&quot;nulla mollit adipis&quot;,&quot;id&quot;:&quot;laborum sint&quot;,&quot;label&quot;:&quot;fugiat&quot;}],&quot;templateType&quot;:&quot;in cillum&quot;,&quot;_expandable&quot;:{&quot;body&quot;:&quot;anim aute officia in culpa&quot;},&quot;_links&quot;:{},&quot;body&quot;:{&quot;value&quot;:&quot;aute sit pariatur consequat deserunt&quot;,&quot;representation&quot;:&quot;anonymous_export_view&quot;,&quot;_expandable&quot;:{&quot;content&quot;:&quot;nulla cillum reprehenderit&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;}}}}