Skip to content
atlassian-dc-mcp
Esc
↑↓navigate↵open⌘Jpreview

Get related labels

Returns a paginated list of related Labels used by Content within the given Space. A Label is defined as being related to another when it is found attached to the same Content as the Label specified in the request.

Example request URI: https://example.com/confluence/rest/api/space/TEST/labels/example-label/related

GET/rest/api/space/{spaceKey}/labels/{labelName}/related
Path parameters
spaceKeystringrequired

a string containing the key of the space

labelNamestringrequired

a string containing the name of the label

Query parameters
limitstring

the limit of the number of labels to return, this may be restricted by fixed system limits

startstring

the start point of the collection to return.

Responses
200

a JSON representation of the lists label, or an empty list if no labels are found.

resultsLabel[]
Show properties
Array of Label
prefixstring
namestring
idstring
labelstring
startnumber
limitnumber
sizenumber
_linksobject
Show properties
basestring
selfstring
contextstring
nextstring
prevstring
403

If the calling user does not have permission to view the given space.

statusCodeinteger<int32>
dataValidationResult
Show properties
authorizedboolean
validboolean
errorsobject
successfulboolean
allowedInReadOnlyModeboolean
messagestring
reasonstring
404

Returned if there is no space with the given spaceKey.

statusCodeinteger<int32>
dataValidationResult
Show properties
authorizedboolean
validboolean
errorsobject
successfulboolean
allowedInReadOnlyModeboolean
messagestring
reasonstring
Try it
Server
Parameters
Request
curl -X GET 'http://example.com:7990/confluence/rest/api/space/string/labels/string/related' \
  -H 'Accept: application/json'
Response
{
  "results": [
    {
      "prefix": "my",
      "name": "label",
      "id": "1234",
      "label": "string"
    }
  ],
  "start": 25,
  "limit": 25,
  "size": 25,
  "_links": {
    "base": "http://localhost:8085/rest/api",
    "self": "http://localhost:8085/rest/api",
    "context": "http://localhost:8085/rest/api",
    "next": "http://localhost:8085/rest/api/latest/../paginate?limit=25&start=50",
    "prev": "http://localhost:8085/rest/api/latest/../paginate?limit=25&start=0"
  }
}

Was this page helpful?