Contacts

Update a contact

Update a contact's standard or custom field values. Only the fields you send are changed; omitted fields are left as-is. The {id} accepts a contact id or email. To manage a contact's subscription preferences instead, use Set a contact's topic preference. Requires the contacts:write capability.

patch/contacts/{id}

Request

  • Base URL: https://www.unitpost.com/api/v1
  • URL: https://www.unitpost.com/api/v1/contacts/{id}
  • Auth: HTTP bearer

Request body

first_namestring nullable
last_namestring nullable
unsubscribedboolean
custom_fieldsobject

Response

The updated contact.

object'contact' required
idstring required
emailstring nullable required
first_namestring nullable required
last_namestring nullable required
unsubscribedboolean required
unsubscribed_atstring nullable required
unsubscribe_reason'USER' | 'MANUAL' | 'IMPORT' | 'BOUNCE' | 'COMPLAINT' nullable required
custom_fieldsobject required
created_atstring required
updated_atstring required

Changes

No recorded changes to this operation across all 1 revision of this API.