Update a contact

Writes only the fields sent; the others are left as they are. A list sent (phones, emails, addresses, tags) replaces that list: to add a number, read the contact, append the row, and send the list with If-Match. A row keeps its id to stay that row; a row sent back exactly as read passes through as stored. null clears a text field. Send If-Match with the etag you read: if the contact changed since, nothing is written (412), and you read it again, re-apply your change and send it again. Changing details, star and on_desk_phones needs permissions.edit; changing private and owner_id needs permissions.change_access (sent unchanged, they need nothing). A person saving an auto-created contact's details or star makes it a saved contact they own, and numbers fold in as on a create. Answered from the primary database.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
uuid
required

The contact's id.

Body Params

The fields to change; the others are left as they are. null clears a text field ("" is refused).

string
length ≤ 201

A full name as a person types it. It is split into first_name and last_name the way the web app splits it, and display_name is cleared; for a contact known only by its company, it renames the company. Not with first_name, last_name, display_name or (on a change) company.

string | null

The first name; null for none.

string | null

The last name; null for none.

string | null

Replaces the name people see; null for none.

string | null

The company; null for none.

string | null

The job title; null for none.

phones
array of objects
length ≤ 50

The whole list: it replaces the contact's numbers. Each row is complete as sent: an omitted dial_after or label is none, an omitted primary is false.

phones
emails
array of objects
length ≤ 50

The whole list: it replaces the contact's e-mail addresses.

emails
addresses
array of objects
length ≤ 50

The whole list: it replaces the contact's addresses.

addresses
tags
array of strings
length ≤ 100

The whole set of tags, by name (1 to 50 characters each). A tag the account doesn't have yet is created.

tags
boolean

Starred for the whole account.

boolean

true: only its owner, the people it is shared with and the account's owners see it; an API key never does, even one that made it private.

uuid

The person who owns it, a user of the account. It can't be null.

boolean

Show it on desk phones.

Headers
uuid

The account this request acts in, by its id (id in GET /me's accounts). Needed only by credentials that reach several accounts: without it an API key acts in its own account, and a person reads their home account but must name the account a write acts in (400 account_required). Naming an account the credentials may not act in: 403 forbidden. Empty, not an account id, or sent twice: 400 parameter_invalid. Each names Account-Id in param.

string

The etag you read (with or without W/): the write is made only if the contact is still that version, else 412 precondition_failed and nothing changes. * or no header: any version.

Responses

Language
Credentials
Bearer
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json