remagicaDocs home
API referenceLibrary

Label items

POST
/library/items/labels

Needs a key withlibrary:write

Puts labels on items and takes others off, for many items at once. An item has at most 10 labels.

Requires scope library:write.

Authorization

apiKey
headerx-api-key<token>

An API key of your workspace (rmg_…), created in the web app. It acts for that workspace, not for a person, and keeps working when its creator leaves.

Request Body

application/json
  1. body
add?array<>

Labels to put on every item.

Itemsitems <= 10
Default[]
itemIds*array<>
Items1 <= items <= 100
remove?array<>

Labels to take off every item.

Itemsitems <= 100
Default[]

Response Body

Done.

application/json
  1. response
updated*integer
Example Request
curl -X POST 'https://api.remagica.com/api/v1/library/items/labels' \  -H 'Content-Type: application/json' \  -d '{  "itemIds": [    "string"  ]}'
Example Response
{  "updated": 1}