Update a Tag
Update an existing tag resource.
You may archive a tag by setting the value of is_active
to false
. Archived tags remain linked to existing records but cannot be associated with new ones. If needed, archived tags can be reactivated by setting the value of is_active
to true
.
PATCH /tags/{tag_name}
curl \
-X PATCH https://api.arta.io/tags/{tag_name} \
-H "Content-Type: application/json" \
-H "Authorization: ARTA_APIKey s0e1t2e3c4a5s6t7r8o9n10o11m12y" \
-d '{"tag":{"is_active":false}}'
Request example
{
"tag": {
"is_active": false
}
}
Response examples (200)
{
"id": "39fdd1c1-4bae-4235-9ea8-412c63d2be90",
"name": "ny-warehouse",
"color": "008000",
"is_active": true,
"created_at": "2024-09-05T15:00:46.905529",
"created_by": 1,
"updated_at": "2024-09-25T17:58:47.918049",
"updated_by": null,
"description": null
}