API referenceLibrary
Update a label
PATCH
Needs a key withlibrary:write
Renames a label or changes its colour.
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.
labelId*stringLength
1 <= length <= 128application/json- body
color?stringThe label's colour.
Value in
"gray""red""orange""yellow""green""teal""blue""purple""pink"name?stringLength
1 <= length <= 40The label.
application/json- response
One of the workspace's asset labels.
color*stringThe label's colour.
Value in
"gray""red""orange""yellow""green""teal""blue""purple""pink"id*stringLength
1 <= length <= 128name*stringitemCount*integerHow many assets (not deleted) have it.
curl -X PATCH 'https://api.remagica.com/api/v1/library/labels/e5b488e2-5b3d-4f60-8e2a-1d9c6b4f7e05' \ -H 'Content-Type: application/json' \ -d '{}'Example Response
{ "color": "gray", "id": "a5614527-5b3d-4f60-8e2a-1d9c6b4f7e05", "name": "Autumn campaign", "itemCount": 1}