Document labels
Bulk update document labels
PATCH
Add and/or remove multiple labels from a document in a single atomic operation.
When using this endpoint, keep in mind that:
- All changes succeed or fail together. No partial updates occur.
- Label matching is case-insensitive.
- Requests must have at least one operation. Either
addorremovemust contain at least one label. - Labels must already exist to be added to or removed from a document. Create labels via the Create label API.
- Labels cannot be included in both
addandremovein the same request. - Organization Admin permissions are required to:
- Add or remove Verified labels
- Add or remove Homepage labels
Authorizations
Can be either an Organization API Key or Personal Access Token (PAT).
Include in the Authorization header as: Bearer YOUR_TOKEN
Path Parameters
The document identifier (UUID)
Query Parameters
Requires an Organization API key. Optional user ID that attributes the action to the specified user.
Body
application/json
Response
Labels updated successfully
The updated list of labels on the document