/** * The Confluence Cloud REST API * This document describes the REST API and resources provided by Confluence. The REST APIs are for developers who want to integrate Confluence into their application and for administrators who want to script interactions with the Confluence server.Confluence\'s REST APIs provide access to resources (data entities) via URI paths. To use a REST API, your application will make an HTTP request and parse the response. The response format is JSON. Your methods will be the standard HTTP methods like GET, PUT, POST and DELETE. Because the REST API is based on open standards, you can use any web development language to access the API. * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import * as runtime from '../runtime'; import { BlueprintTemplateArray, ContentTemplate, ContentTemplateArray, ContentTemplateCreate, ContentTemplateUpdate } from '../models'; export interface CreateContentTemplateRequest { ContentTemplateCreate: ContentTemplateCreate; } export interface GetBlueprintTemplatesRequest { spaceKey?: string; start?: number; limit?: number; expand?: Array; } export interface GetContentTemplateRequest { contentTemplateId: string; } export interface GetContentTemplatesRequest { spaceKey?: string; start?: number; limit?: number; expand?: Array; } export interface RemoveTemplateRequest { contentTemplateId: string; } export interface UpdateContentTemplateRequest { ContentTemplateUpdate: ContentTemplateUpdate; } /** * no description */ export declare class TemplateApi extends runtime.BaseAPI { /** * Creates a new content template. Note, blueprint templates cannot be created via the REST API. **[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. * Create content template */ createContentTemplateRaw(requestParameters: CreateContentTemplateRequest): Promise>; /** * Creates a new content template. Note, blueprint templates cannot be created via the REST API. **[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. * Create content template */ createContentTemplate(requestParameters: CreateContentTemplateRequest): Promise; /** * 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**: Permission to access the Confluence site (\'Can use\' global permission). * Get blueprint templates */ getBlueprintTemplatesRaw(requestParameters: GetBlueprintTemplatesRequest): Promise>; /** * 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**: Permission to access the Confluence site (\'Can use\' global permission). * Get blueprint templates */ getBlueprintTemplates(requestParameters: GetBlueprintTemplatesRequest): Promise; /** * 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**: \'Admin\' permission for the space to view space templates and \'Confluence Administrator\' global permission to view global templates. * Get content template */ getContentTemplateRaw(requestParameters: GetContentTemplateRequest): Promise>; /** * 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**: \'Admin\' permission for the space to view space templates and \'Confluence Administrator\' global permission to view global templates. * Get content template */ getContentTemplate(requestParameters: GetContentTemplateRequest): Promise; /** * 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**: \'Admin\' permission for the space to view space templates and \'Confluence Administrator\' global permission to view global templates. * Get content templates */ getContentTemplatesRaw(requestParameters: GetContentTemplatesRequest): Promise>; /** * 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**: \'Admin\' permission for the space to view space templates and \'Confluence Administrator\' global permission to view global templates. * Get content templates */ getContentTemplates(requestParameters: GetContentTemplatesRequest): Promise; /** * 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. * Remove template */ removeTemplateRaw(requestParameters: RemoveTemplateRequest): Promise>; /** * 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. * Remove template */ removeTemplate(requestParameters: RemoveTemplateRequest): Promise; /** * 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 create a space template or \'Confluence Administrator\' global permission to create a global template. * Update content template */ updateContentTemplateRaw(requestParameters: UpdateContentTemplateRequest): Promise>; /** * 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 create a space template or \'Confluence Administrator\' global permission to create a global template. * Update content template */ updateContentTemplate(requestParameters: UpdateContentTemplateRequest): Promise; } /** * @export * @enum {string} */ export declare enum GetBlueprintTemplatesExpandEnum { Body = "body" } /** * @export * @enum {string} */ export declare enum GetContentTemplatesExpandEnum { Body = "body" }