API referenceLibrary
Label items
POST
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.
apiKeyheader
x-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.
application/json- body
add?array<>Labels to put on every item.
Items
items <= 10Default
[]itemIds*array<>Items
1 <= items <= 100remove?array<>Labels to take off every item.
Items
items <= 100Default
[]Done.
application/json- response
updated*integercurl -X POST 'https://api.remagica.com/api/v1/library/items/labels' \ -H 'Content-Type: application/json' \ -d '{ "itemIds": [ "string" ]}'Example Response
{ "updated": 1}