---
ai:
  exclude: true
search:
  tags:
    - Content Labels
    - POST
seo:
  description: >-
    Adds a list of labels to the specified content. The body is… Reference for
    the POST /rest/api/content/{id}/label endpoint in the Confluence Data Center
    API.
sidebar:
  label: Add Labels
  badge: POST
title: Add Labels
type: openapi-operation
---
Adds a list of labels to the specified content. The body is the json representation of the list.

`POST /rest/api/content/{id}/label`

**Request body** (`application/json`)

a single label object or a list of labels to add

- `prefix` (string)
- `name` (string)
- `id` (string)
- `label` (string)

Request body example:

```json
{
  "prefix": "my",
  "name": "label",
  "id": "1234",
  "label": "string"
}
```

**Responses**

- `200` — returns a JSON representation of the existing and added labels on the content with the given id, or a 404 NOT FOUND if there is no content with the given id or if the user is not permitted. An empty list will be returned if there are no labels on the given content
- `404` — Returned if there is no content with the given id, or if the calling user does not have permission to view the content.

Response example, 200:

```json
{
  "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"
  }
}
```
