v1

latestOpenAPI 3.1.02026-07-2618690613.4 KB
Document labels

Bulk update document labels

Add and/or remove multiple labels from a document in a single atomic operation.

patch/v1/documents/{documentId}/labels

Path parameters

documentIdstring uuid required

The document identifier (UUID)

Query parameters

userIdstring

Requires an Organization API key. Optional user ID that attributes the action to the specified user.

Request body

addstring[]

Label names to add to the document

removestring[]

Label names to remove from the document

Response

Labels updated successfully

labelsstring[]

The updated list of labels on the document