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

Get related labels, currently returning global labels only.

Return labels related to the given label name sorted by frequency of use in descending order, with a specified limit of results. The current process for identifying related labels solely examines global labels, but it may change in the future.

Example request URI’s: https://example.com/confluence/rest/api/label/test_label_name/related https://example.com/confluence/rest/api/label/my:test_label_name/related?limit=200

GET/rest/api/label/{labelName}/related
Path parameters
labelNamestringrequired

the name of the label (namespace prefixes permitted).

Query parameters
limitstring

the maximum number of related labels to return. Default to be 100.

Responses
200

Return a JSON representation of related labels to the given label name

prefixstring
namestring
idstring
labelstring
400

Return a bad request error if the given label name is invalid

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

Return a not found error if the given label name is not found

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/label/string/related' \
  -H 'Accept: application/json'
Response
{
  "prefix": "my",
  "name": "label",
  "id": "1234",
  "label": "string"
}

Was this page helpful?