Skip to main content

Update Tag

Update a tag's name or description.

Endpoint

PATCH /tags/:id

Returns: 200 OK

Headers

HeaderValueRequired
AuthorizationBearer <your-api-key>Yes
Content-Typeapplication/jsonYes

Path Parameters

ParameterTypeDescription
idstringThe tag ID

Body Parameters

ParameterTypeRequiredDescription
namestringNoUpdated tag name. Max 100 characters. Only letters, numbers, spaces, hyphens, and underscores.
descriptionstringNoUpdated description.

Response

{
"id": "01957e3a-4b5c-7d8e-9f0a-1b2c3d4e5f6a",
"name": "VIP-Gold",
"description": "Top-tier VIP customers",
"contact_count": 1250,
"created_at": "2026-03-08T12:00:00.000Z",
"updated_at": "2026-03-09T14:30:00.000Z"
}

See Create Tag for the field reference.


Examples

curl -X PATCH "https://api.arsel.sa/v1/tags/01957e3a-4b5c-7d8e-9f0a-1b2c3d4e5f6a" \
-H "Authorization: Bearer be_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"name": "VIP-Gold",
"description": "Top-tier VIP customers"
}'

Error Responses

{
"status_code": 404,
"name": "not_found",
"message": "Tag not found"
}