Contacts
Update a contact
Change a contact's name, data or subscription status.
PATCH
/v1/contacts/{id}API keyOnly the fields you send change. Unlike Create a contact, null here clears a field. The email address can't be changed; create a new contact instead.
Setting unsubscribed to false puts a contact back on your broadcasts. Only do that when the person asked for it. See Unsubscribe.
Path parameters
The contact ID.
Body parameters
firstNamestring | null
Up to 200 characters. null clears it.
lastNamestring | null
Up to 200 characters. null clears it.
unsubscribedboolean
true makes broadcasts skip this contact.
dataobject | null
Replaces the stored data object as a whole. null clears it.
Response
The updated contact, with the fields described in Create a contact.
Errors
| Status | Code | When |
|---|---|---|
| 400 | missing_body | The request has no body. |
| 400 | invalid_body | A field has the wrong type or length. |
| 404 | contact_not_found | No contact with that ID in this project. |