InternalCreate a new instance of the service.
Adds labels to a piece of content. Does not modify the existing labels.
Notes:
Permissions required: Permission to update the content.
The labels to add to the content.
The key of the space to add labels to.
Returned if the labels are added to the content.
The name of the label to remove
Optionalprefix?: stringThe prefix of the label to remove. If not provided defaults to global.
The key of the space to remove a labels from.
Moves a pagetree rooted at a page to the space's trash:
page and its status is current, it will be
trashed including
all its descendants.This API accepts the pageTree delete request and returns a task ID. The delete process happens asynchronously.
Response example:
{
"id" : "1180606",
"links" : {
"status" : "/rest/api/longtask/1180606"
}
}
Use the /longtask/<taskId> REST API to get the copy task status.
Permissions required: 'Delete' permission for the space that the content is in.
The ID of the content which forms root of the page tree, to be deleted.
Returned if the request to trash content and all its current page descendants, is successfully accepted.
Returns a list of labels associated with a space. Can provide a prefix as well as other filters to select different types of labels.
Optionallimit?: numberThe maximum number of labels to return per page. Note, this may be restricted by fixed system limits.
Optionalprefix?: "global" | "my" | "team"Filters the results to labels with the specified prefix. If this parameter is not specified, then labels with any prefix will be returned.
global prefix is used by labels that are on content within the provided
space.my prefix can be explicitly added by a user when adding a label
via the UI, e.g. 'my:example-label'.team prefix is used for labels applied to the space.The key of the space to get labels for.
Optionalstart?: numberThe starting index of the returned labels.
Returned if the list of labels is returned.
Protected Staticinitialize
APIs in this section can change without any prior deprecation notice.
See
https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-experimental