Update a contact
contacts:updateAuthenticationReplaces only supplied mutable fields. Set a field to an empty string to clear it. E.164 is intentionally immutable; create a different contact for a different number. Use If-Match to reject a stale read-modify-write cycle. A semantic no-op preserves updated_at and ETag and records contact.update.noop.
bearerAuthAuthorizationBearer <token>Use a Voice API key or connected-app OAuth access token. Authentication.
id*stringuuidIf-Match?stringOptional strong ETag (or *) from a prior response. A stale tag returns 412 without changing the resource.
application/json- body
1 <= propertiesdisplay_name?stringNew display label, or an empty string to clear it.
length <= 120company?stringNew company label, or an empty string to clear it.
length <= 120notes?stringNew multiline notes, or an empty string to clear them.
length <= 10000timezone?stringNew loadable IANA timezone name, or an empty string to clear it.
Updated contact detail.
application/json- response
id*stringuuide164*ContactE164An E.164 number with a non-zero country code and 7 to 15 digits, or a bare internal number/extension of 1 to 20 [0-9*#] characters (e.g. 103, 2770124).
^(\+[1-9][0-9]{7,14}|[0-9*#]{1,20})$display_name?stringlength <= 120company?stringlength <= 120timezone?stringCanonical IANA timezone name used for contact-local outbound policy evaluation.
tags*array<>call_count*integer0 <= valuelast_contacted_at?stringdate-timecreated_at*stringdate-timeupdated_at*stringdate-timenotes?stringlength <= 10000curl -X PATCH 'https://api.kejue.co/v1/contacts/497f6eca-6276-4993-bfeb-53cbbbba6f08' \ -H 'Content-Type: application/json' \ -d '{}'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "e164": "string", "display_name": "string", "company": "string", "timezone": "string", "tags": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "color": "slate" } ], "call_count": 0, "last_contacted_at": "2019-08-24T14:15:22Z", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z", "notes": "string"}