Skip to main content
Replace the 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 tag, each named by its identifier. The same tags are written onto every one of them.

Required array length: 1 - 10000 elements
tags
object
required

The tags each document should carry once the request is through. What is sent replaces what was there before; a kind left out of it is not touched, and an empty list for a kind clears that kind.

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.