Skip to main content
Change file labels

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
files
string[]
required

Files whose labels are to change.

Minimum array length: 1
Minimum string length: 1
Pattern: ^[a-z0-9]+$
add
(string | null)[]

Labels to add to whatever each file already carries. At least one of add, remove and set must be provided.

Example:
remove
(string | null)[]

Labels to take away from each file. A label a file does not carry is passed over. At least one of add, remove and set must be provided.

Example:
set
(string | null)[]

Labels to be the file's whole set, discarding what it carried before. Sent alongside add or remove, it is applied last and therefore wins over both. At least one of add, remove and set must be provided.

Example:

Response

Returns the entries that did not go through.

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.