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

Get labels

Returns the list of labels on a piece of Content. Example request URI(s):

  • http://example.com/confluence/rest/api/content/1234/label
  • http://example.com/confluence/rest/api/content/1234/label?prefix=global&start=0&limit=200
GET/rest/api/content/{id}/label
Path parameters
idstringrequired

the id of the content to get the labels for

Query parameters
prefixstring

the prefixes to filter the labels with.

limitstring

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

startstring

he start point of the collection to return.

Responses
200

returns a JSON representation of the existing labels on the content with the given id

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

Returned if there is no content with the given id, or if the calling user does not have permission to view the content.

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/content/string/label' \
  -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?