Skip to main content
Add and remove tags on documents

Authorizations

token
string
query
required

Standard authorization for most API calls. This token identifies the logged-in user and their permissions. It is obtained either as a temporary token after a successful login or as a long-term API key.

Body

application/json
data
object[]
required

The documents to change, each named by its identifier. The same tags are added to and taken off every one of them.

Required array length: 1 - 10000 elements
tagsToAdd
object

Tags to put on each document on top of what it already carries. One that is already there is left as it is rather than repeated. At least one of tagsToAdd and tagsToDelete must be provided.

tagsToDelete
object

Tags to take off each document. One a document does not carry is simply skipped. Where the same tag is given on both sides, it ends up removed. At least one of tagsToAdd and tagsToDelete must be provided.

Response

Reports the outcome per document; individual documents may still have failed, so read the per-item results.

count
integer
required

Number of items the request processed, successful and failed alike.

Example:

22

errors
boolean
required

Whether any item failed. Check it before treating the call as a clean success - the request itself answers 200 even when individual items did not go through.

Example:

false

items
object[]

Per-item outcomes. Endpoints report the failed items here; some also list the successful ones, so read each item's own status rather than inferring it from being listed.