POST /tags
curl \
-X POST https://api.arta.io/tags \
-H "Content-Type: application/json" \
-H "Authorization: ARTA_APIKey s0e1t2e3c4a5s6t7r8o9n10o11m12y" \
-d '{"tag":{"color":"0000FF","description":"string","is_active":true,"name":"la-warehouse"}}'
Request examples
# Headers
Authorization: ARTA_APIKey s0e1t2e3c4a5s6t7r8o9n10o11m12y
# Payload
{
"tag": {
"color": "0000FF",
"description": "string",
"is_active": true,
"name": "la-warehouse"
}
}
Response examples (201)
{
"id": "32b7f7bb-e10d-417e-be56-f373c5f7db5e",
"name": "ct-warehouse",
"color": "D7D6D0",
"is_active": false,
"created_at": "2024-01-17T23:26:17.654177",
"created_by": null,
"updated_at": "2024-09-25T17:57:44.719863",
"updated_by": null,
"description": null
}
Response examples (400)
{
"errors": {
"detail": "string"
}
}