Skip to Content
Contacts

Update a contact tag

Permissioncontacts:updateAuthentication
PATCH
/contacts/tags/{id}

Updates name and/or color. The name remains case-insensitively unique. Embedded tag data and ETags on assigned contacts change atomically only for an effective change. A semantic no-op preserves the tag and contact ETags and records contact_tag.update.noop.

Authorization

bearerAuth
headerAuthorizationBearer <token>

Use a Voice API key or connected-app OAuth access token. Authentication.

Path Parameters

id*string
Formatuuid

Header Parameters

If-Match?string

Optional strong ETag (or *) from a prior response. A stale tag returns 412 without changing the resource.

Request Body

application/json
  1. body
Properties1 <= properties
name?string

Case-insensitively unique name. Surrounding whitespace is trimmed; control characters are rejected.

Length1 <= length <= 40
color?ContactTagColor
Value in"slate""blue""green""amber""red""purple""teal""pink"

Response Body

Updated contact tag.

application/json
  1. response
id*string
Formatuuid
name*string
Length1 <= length <= 40
color*ContactTagColor
Value in"slate""blue""green""amber""red""purple""teal""pink"
usage_count*integer
Range0 <= value
created_at*string
Formatdate-time
updated_at*string
Formatdate-time
Example Request
curl -X PATCH 'https://api.kejue.co/v1/contacts/tags/497f6eca-6276-4993-bfeb-53cbbbba6f08' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "name": "string",  "color": "slate",  "usage_count": 0,  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z"}