/** * 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 { LabelArray, LabelCreate } from '../models'; export interface AddLabelsToContentRequest { id: string; LabelCreate: Array; } export interface GetLabelsForContentRequest { id: string; prefix?: GetLabelsForContentPrefixEnum; start?: number; limit?: number; } export interface RemoveLabelFromContentRequest { id: string; label: string; } export interface RemoveLabelFromContentUsingQueryParameterRequest { id: string; name?: string; } /** * no description */ export declare class ContentIdLabelApi extends runtime.BaseAPI { /** * Adds labels to a piece of content. Does not modify the existing labels. Notes: - Labels can also be added when creating content ([Create content](#api-content-post)). - Labels can be updated when updating content ([Update content](#api-content-id-put)). This will delete the existing labels and replace them with the labels in the request. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to update the content. * Add labels to content */ addLabelsToContentRaw(requestParameters: AddLabelsToContentRequest): Promise>; /** * Adds labels to a piece of content. Does not modify the existing labels. Notes: - Labels can also be added when creating content ([Create content](#api-content-post)). - Labels can be updated when updating content ([Update content](#api-content-id-put)). This will delete the existing labels and replace them with the labels in the request. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to update the content. * Add labels to content */ addLabelsToContent(requestParameters: AddLabelsToContentRequest): Promise; /** * Returns the labels on a piece of content. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: \'View\' permission for the space and permission to view the content if it is a page. * Get labels for content */ getLabelsForContentRaw(requestParameters: GetLabelsForContentRequest): Promise>; /** * Returns the labels on a piece of content. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: \'View\' permission for the space and permission to view the content if it is a page. * Get labels for content */ getLabelsForContent(requestParameters: GetLabelsForContentRequest): Promise; /** * Removes a label from a piece of content. This is similar to [Remove label from content using query parameter](#api-content-id-label-delete) except that the label name is specified via a path parameter. Use this method if the label name does not have \"/\" characters, as the path parameter does not accept \"/\" characters for security reasons. Otherwise, use [Remove label from content using query parameter](#api-content-id-label-delete). **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to update the content. * Remove label from content */ removeLabelFromContentRaw(requestParameters: RemoveLabelFromContentRequest): Promise>; /** * Removes a label from a piece of content. This is similar to [Remove label from content using query parameter](#api-content-id-label-delete) except that the label name is specified via a path parameter. Use this method if the label name does not have \"/\" characters, as the path parameter does not accept \"/\" characters for security reasons. Otherwise, use [Remove label from content using query parameter](#api-content-id-label-delete). **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to update the content. * Remove label from content */ removeLabelFromContent(requestParameters: RemoveLabelFromContentRequest): Promise; /** * Removes a label from a piece of content. This is similar to [Remove label from content](#api-content-id-label-label-delete) except that the label name is specified via a query parameter. Use this method if the label name has \"/\" characters, as [Remove label from content using query parameter](#api-content-id-label-delete) does not accept \"/\" characters for the label name. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to update the content. * Remove label from content using query parameter */ removeLabelFromContentUsingQueryParameterRaw(requestParameters: RemoveLabelFromContentUsingQueryParameterRequest): Promise>; /** * Removes a label from a piece of content. This is similar to [Remove label from content](#api-content-id-label-label-delete) except that the label name is specified via a query parameter. Use this method if the label name has \"/\" characters, as [Remove label from content using query parameter](#api-content-id-label-delete) does not accept \"/\" characters for the label name. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to update the content. * Remove label from content using query parameter */ removeLabelFromContentUsingQueryParameter(requestParameters: RemoveLabelFromContentUsingQueryParameterRequest): Promise; } /** * @export * @enum {string} */ export declare enum GetLabelsForContentPrefixEnum { Global = "global", My = "my", Team = "team" }