Update a contact
PUT/api/partner-gateway/contacts/:id
Updates a contact of your account. Only the fields you send change, with the exceptions below.
- Partial update: a field you leave out keeps its stored value. Properties outside the request schema are ignored.
- Names are recomputed together: to change a name, send
fullName,firstName,middleNameandlastNametogether. The rules are on thefullNamefield. - Consents: only the channels you send change, and the
consentsreturned byGET /contacts/{id}can be sent back as they are. The rules are on theconsentsfield. - Invalid phone numbers and emails do not fail the call: the contact is updated (
200) anderrorslists every invalid value of the contact, including those stored before this request. - A new phone number can change the contact's validity and the channels that reach it: it might not support RCS, for example.
- List memberships are not changed: manage them with the
/contacts/list/contactsendpoints.
Every update erases the contact's dynamic fields, the additional fields defined for your account in the platform, which this API neither returns nor accepts.
Request
Responses
- 200
- 400
- 401
- 404
- 500
Contact updated. errors lists the invalid phone numbers and email addresses of the contact, if any.
The body is missing, cannot be read (for example a birthday in another format), or carries consents that cannot be stored: an unknown key, a status other than OPTIN or OPTOUT, a date in another format or without its status.
The API key is missing, invalid, or lacks the CONTACTS operation.
No contact with this ID in your account.
Unexpected server error.