{ "opencollection": "1.0.0", "info": { "name": "Atlassian Admin Account Template API", "version": "1.0.0" }, "request": { "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "items": [ { "info": { "name": "Template", "type": "folder" }, "items": [ { "info": { "name": "Atlassian Get Blueprint Templates", "type": "http" }, "http": { "method": "GET", "url": "https://api.atlassian.com/wiki/rest/api/template/blueprint", "params": [ { "name": "spaceKey", "value": "", "type": "query", "description": "The key of the space to be queried for templates. If the `spaceKey`\nis not specified, global blueprint templates will be returned." }, { "name": "start", "value": "", "type": "query", "description": "The starting index of the returned templates." }, { "name": "limit", "value": "", "type": "query", "description": "The maximum number of templates to return per page.\nNote, this may be restricted by fixed system limits." }, { "name": "expand", "value": "", "type": "query", "description": "A multi-value parameter indicating which properties of the template\nto expand.\n\n- `body` returns the content of the template in storage format." } ] }, "docs": "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](https://confluence.atlassian.com/x/_AozKw) required**:
'View' permission for the space to view blueprints for the space and permission
to access the Confluence site ('Can use' globa" }, { "info": { "name": "Atlassian Get Content Templates", "type": "http" }, "http": { "method": "GET", "url": "https://api.atlassian.com/wiki/rest/api/template/page", "params": [ { "name": "spaceKey", "value": "", "type": "query", "description": "The key of the space to be queried for templates. If the `spaceKey`\nis not specified, global templates will be returned." }, { "name": "start", "value": "", "type": "query", "description": "The starting index of the returned templates." }, { "name": "limit", "value": "", "type": "query", "description": "The maximum number of templates to return per page.\nNote, this may be restricted by fixed system limits." }, { "name": "expand", "value": "", "type": "query", "description": "A multi-value parameter indicating which properties of the template\nto expand.\n\n- `body` returns the content of the template in storage format." } ] }, "docs": "Returns all content templates. Use this method to retrieve all global
content templates or all content templates in a space.

**[Permissions](https://confluence.atlassian.com/x/_AozKw) 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." }, { "info": { "name": "Atlassian Get Content Template", "type": "http" }, "http": { "method": "GET", "url": "https://api.atlassian.com/wiki/rest/api/template/:contentTemplateId", "params": [ { "name": "contentTemplateId", "value": "", "type": "path", "description": "The ID of the content template to be returned." } ] }, "docs": "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](https://confluence.atlassian.com/x/_AozKw) 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." }, { "info": { "name": "Atlassian Remove Template", "type": "http" }, "http": { "method": "DELETE", "url": "https://api.atlassian.com/wiki/rest/api/template/:contentTemplateId", "params": [ { "name": "contentTemplateId", "value": "", "type": "path", "description": "The ID of the template to be deleted." } ] }, "docs": "Deletes a template. This results in different actions depending on the
type of template:

- If the template is a content template, it is deleted.
- If the template is a modified space-level blueprint template, it reverts
to the template inherited from the global-level blueprint template.
- If the template is a modified global-level blueprint template, it reverts
to the default global-level blueprint template.

Note, unmodified blueprint templates cannot be deleted.
**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
'Admin' permission for the space to create a space template or 'Confluence Administrator'
global permission to create a global template." }, { "info": { "name": "Atlassian Update Content Template", "type": "http" }, "http": { "method": "PUT", "url": "https://api.atlassian.com/wiki/rest/api/template", "body": { "type": "json", "data": "{}" } }, "docs": "Updates a content template. Note, blueprint templates cannot be updated
via the REST API.

**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
'Admin' permission for the space to update a space template or 'Confluence Administrator'
global permission to update a global template." } ] } ], "bundled": true }