Skip to content

Update a contact

PATCH /v1/contacts/{id}

Changes the fields you send and leaves the others alone.

Needs contacts:write.

id string · uuid

The contact’s ID.

name string

The name your business gives the contact. An empty string takes it off, and the WhatsApp profile name shows again.

Up to 255 characters.

attributes object

Merged into the contact’s attributes. A key you send replaces its value, and a null value removes the key. Names and values follow the same rules as when you create a contact. The result can have at most 50.

A map; each value is a string or number or boolean.

number_id string · uuid

The number to message the contact from, from GET /v1/numbers.

marketing_opt_out boolean

true if the contact opted out of marketing messages, false if they opted back in.

contact.updated is sent only if something changed.

200 The contact object. The contact as it is now.

Besides the ones every request can get:

422invalid_fieldA field breaks a rule, such as an attribute name with a space or more than 50 attributes.
404not_foundThere is no contact with this ID in your workspace.