{ "opencollection": "1.0.0", "info": { "name": "Atlassian Admin Account Experimental API", "version": "1.0.0" }, "request": { "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "items": [ { "info": { "name": "Experimental", "type": "folder" }, "items": [ { "info": { "name": "Atlassian Get Space Labels", "type": "http" }, "http": { "method": "GET", "url": "https://api.atlassian.com/wiki/rest/api/space/:spaceKey/label", "params": [ { "name": "spaceKey", "value": "", "type": "path", "description": "The key of the space to get labels for." }, { "name": "prefix", "value": "", "type": "query", "description": "Filters the results to labels with the specified prefix. If this parameter\nis not specified, then labels with any prefix will be returned.\n\n- `global` prefix is used by labels that are on content within the provided space.\n- `my` prefix can be explicitly added by a user when adding a label\nvia the UI, e.g. 'my:example-label'.\n- `team` prefix is used for labels applied to the space." }, { "name": "start", "value": "", "type": "query", "description": "The starting index of the returned labels." }, { "name": "limit", "value": "", "type": "query", "description": "The maximum number of labels to return per page. Note,\nthis may be restricted by fixed system limits." } ] }, "docs": "Returns a list of labels associated with a space. Can provide a prefix as well as other filters to
select different types of labels." }, { "info": { "name": "Atlassian Add Labels to a Space", "type": "http" }, "http": { "method": "POST", "url": "https://api.atlassian.com/wiki/rest/api/space/:spaceKey/label", "params": [ { "name": "spaceKey", "value": "", "type": "path", "description": "The key of the space to add labels to." } ], "body": { "type": "json", "data": "{}" } }, "docs": "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." }, { "info": { "name": "Atlassian Remove Label From a Space", "type": "http" }, "http": { "method": "DELETE", "url": "https://api.atlassian.com/wiki/rest/api/space/:spaceKey/label", "params": [ { "name": "spaceKey", "value": "", "type": "path", "description": "The key of the space to remove a labels from." }, { "name": "name", "value": "", "type": "query", "description": "The name of the label to remove" }, { "name": "prefix", "value": "", "type": "query", "description": "The prefix of the label to remove. If not provided defaults to global." } ] }, "docs": "Needs a more full description created." }, { "info": { "name": "Atlassian Delete Page Tree", "type": "http" }, "http": { "method": "DELETE", "url": "https://api.atlassian.com/wiki/rest/api/content/:id/pageTree", "params": [ { "name": "id", "value": "", "type": "path", "description": "The ID of the content which forms root of the page tree, to be deleted." } ] }, "docs": "Moves a pagetree rooted at a page to the space's trash:

- If the content's type is `page` and its status is `current`, it will be trashed including
all its descendants.
- For every other combination of content type and status, this API is not supported.

This API accepts the pageTree delete request and returns a task ID.
The delete process happens asynchronously.

Response example:

{
\"id\" : \"1180606\",
\"links\" : {
\"status\" : \"/" } ] } ], "bundled": true }