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": "f7e4b35b-5131-47c2-9a88-238bd6e62e2d",
"name": "ct-warehouse",
"color": "008000",
"is_active": false,
"created_at": "2024-09-25T19:17:54.871490",
"created_by": null,
"updated_at": "2024-09-25T19:19:01.648283",
"updated_by": null,
"description": null
}
Response examples (400)
# Headers
content-type: application/json
x-arta-request-id: FkBjuxbwLLTx4RoAARkx
# Payload
{
"errors": {
"detail": "string"
}
}
Response examples (422)
{
"errors": {
"detail": "string"
}
}