Contacts
Update a contact tag
Permission
contacts:updateAuthenticationPATCH
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.
bearerAuthheader
AuthorizationBearer <token>Use a Voice API key or connected-app OAuth access token. Authentication.
id*stringFormat
uuidIf-Match?stringOptional strong ETag (or *) from a prior response. A stale tag returns 412 without changing the resource.
application/json- body
Properties
1 <= propertiesname?stringCase-insensitively unique name. Surrounding whitespace is trimmed; control characters are rejected.
Length
1 <= length <= 40color?ContactTagColorValue in
"slate""blue""green""amber""red""purple""teal""pink"Updated contact tag.
application/json- response
id*stringFormat
uuidname*stringLength
1 <= length <= 40color*ContactTagColorValue in
"slate""blue""green""amber""red""purple""teal""pink"usage_count*integerRange
0 <= valuecreated_at*stringFormat
date-timeupdated_at*stringFormat
date-timecurl -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"}