TagsUpdate Tag

Update Tag

Update a tag by UUID

curl -X PUT "https://app.nashra.ai/api/v1/tags/123e4567-e89b-12d3-a456-426614174000" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -d '{
  "name": "Premium",
  "color": "blue"
}'
{
  "data": {
    "uuid": "7b2d4c1e-3f5a-4e8d-9c6b-2a1f3e5d7c9b",
    "name": "VIP",
    "color": "blue",
    "created_at": "2025-01-15T10:30:00+00:00"
  },
  "meta": {}
}
PUT
/tags/{uuid}
PUT
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token
Bearer Tokenstring
Required

API key created in Settings → API keys

API key created in Settings → API keys
Content-Typestring
Required

The media type of the request body

Options: application/json
namestring
Max length: 255
colorstring

One of eight palette names — hex values are rejected. Leave it out when creating a tag and Nashra picks a color from the tag's name.

Options: cyan, orange, yellow, green, blue, purple, pink, red
Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token. API key created in Settings → API keys

Path Parameters

Body

application/json
namestring
Example:
Premium
colorstring

One of eight palette names — hex values are rejected. Leave it out when creating a tag and Nashra picks a color from the tag's name.

Allowed values:cyanorangeyellowgreenbluepurplepinkred

Responses

dataobject
metaobject