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