Skip to main content

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, middleName and lastName together. The rules are on the fullName field.
  • Consents: only the channels you send change, and the consents returned by GET /contacts/{id} can be sent back as they are. The rules are on the consents field.
  • Invalid phone numbers and emails do not fail the call: the contact is updated (200) and errors lists 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/contacts endpoints.

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​

Contact updated. errors lists the invalid phone numbers and email addresses of the contact, if any.