InternalCreate a new instance of the service.
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.
The content template to be created. The content body must be in 'storage' format.
Returned if the template is created.
Returns all templates provided by blueprints. Use this method to retrieve all global blueprint templates or all blueprint templates in a space.
Note, all global blueprints are inherited by each space. Space blueprints can be customised without affecting the global blueprints.
Permissions required: 'View' permission for the space to view blueprints for the space and permission to access the Confluence site ('Can use' global permission) to view global blueprints.
Optionalexpand?: ("body" | "body.storage")[]A multi-value parameter indicating which properties of the template to expand.
body or body.storage returns the content of the template in storage
format.Optionallimit?: numberThe maximum number of templates to return per page. Note, this may be restricted by fixed system limits.
OptionalspaceThe key of the space to be queried for templates. If the spaceKey
is not specified, global blueprint templates will be returned.
Optionalstart?: numberThe starting index of the returned templates.
Returned if the requested templates are returned.
Returns a content template. This includes information about template, like the name, the space or blueprint that the template is in, the body of the template, and more.
Permissions required: 'View' permission for the space to view space templates and permission to access the Confluence site ('Can use' global permission) to view global templates.
The ID of the content template to be returned.
Optionalexpand?: ("body" | "body.storage")[]A multi-value parameter indicating which properties of the template to expand.
body or body.storage returns the content of the template in storage
format.Returned if the requested template is returned.
Returns all content templates. Use this method to retrieve all global content templates or all content templates in a space.
Permissions required: 'View' permission for the space to view space templates and permission to access the Confluence site ('Can use' global permission) to view global templates.
Optionalexpand?: ("body" | "body.storage")[]A multi-value parameter indicating which properties of the template to expand.
body or body.storage returns the content of the template in storage
format.Optionallimit?: numberThe maximum number of templates to return per page. Note, this may be restricted by fixed system limits.
OptionalspaceThe key of the space to be queried for templates. If the spaceKey
is not specified, global templates will be returned.
Optionalstart?: numberThe starting index of the returned templates.
Returned if the requested templates are returned.
Deletes a template. This results in different actions depending on the type of template:
Note, unmodified blueprint templates cannot be deleted.
Permissions required: 'Admin' permission for the space to delete a space template or 'Confluence Administrator' global permission to delete a global template.
The ID of the template to be deleted.
Updates a content template. Note, blueprint templates cannot be updated via the REST API.
Permissions required: 'Admin' permission for the space to update a space template or 'Confluence Administrator' global permission to update a global template.
The updated content template.
Returned if the template is updated.
Protected Staticinitialize
See
https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-template