---
title: "Apply label to document"
method: PUT
path: "/v1/documents/{documentId}/labels/{labelName}"
tags: ["Document labels"]
---

# Apply label to document

`PUT /v1/documents/{documentId}/labels/{labelName}`

Apply an existing label to a document. Labels must be created first via the [Create label](/api/labels/create-label) endpoint.

Documents can have multiple labels. When a new label is applied using this endpoint, the API adds it to the document's existing labels. Labels are not replaced.

## Path parameters

- `documentId` string, required
- `labelName` string, required

## Query parameters

- `userId` string

## Response `204`

Label applied successfully. No response body.

This response is returned whether the label was newly applied or already existed on the document.

## Other responses

- `400` — Bad Request. Possible causes: - Label name too short (less than 2 characters) - Label name too long (more than 25 characters) - Invalid HTTP method
- `403` — Forbidden. Possible causes: - User does not have Manager role on the specified document - User lacks Organization Admin permissions for Verified labels - User lacks Organization Admin permissions for Homepage labels
- `404` — Not Found. Possible causes: - Document does not exist - Label does not exist. Must be created first via the [Create label](/api/labels/create-label).
- `429` — Too Many Requests - Rate limit exceeded (60 requests/minute)

---

[API](https://skmtc.net/omni/apis/omni-api.md) · [All operations](https://skmtc.net/omni/apis/omni-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/omni/omni-api/revisions/6b02f7349d0e/schema)
