Update a tag definition
Change a reusable tag definition’s name, color or both. Omitted fields keep their current values. Send If-Match with the ETag from a create or update response, or from the latest GET. A 412 response means the definition changed and must be read again.
Path Parameters
- Type: stringFormat: uuidtag
Definition Id required
Headers
- Type: stringIf
- Match min length:1requiredETag from a create or update response you already have, or from the latest GET when you have none.
Body
required
application/json
- Type: stringcolor
- Type: stringnamemin length:1max length:50
Responses
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
Request Example for patch/external/v2/tag-definitions/{tagDefinitionId}
curl https://sales-api.artemis.solar/external/v2/tag-definitions/123e4567-e89b-12d3-a456-426614174000 \
--request PATCH \
--header 'If-Match: "copy-the-etag-from-your-latest-get"' \
--header 'Content-Type: application/json' \
--header 'x-api-key: YOUR_SECRET_TOKEN' \
--data '{
"color": "#dc2626"
}'
Tag color updated
{
"data": {
"id": "3a11c9a2-9924-495e-8281-dd797da7f77a",
"name": "Priority",
"color": "#dc2626",
"createdAt": "2026-09-05T12:00:00.000Z",
"updatedAt": "2026-09-05T12:01:00.000Z"
}
}
