Contacts

Update a contact

Change the name, or set unsubscribed to opt the contact in or out.

patch/audiences/{id}/contacts/{contactId}

Request

  • Base URL: https://api.eusend.dev
  • URL: https://api.eusend.dev/audiences/{id}/contacts/{contactId}
  • Auth: HTTP bearer

Path parameters

idstring uuid required

The audience id.

contactIdstring uuid required

The contact id.

Request body

first_namestring
last_namestring
unsubscribedboolean

Set true to opt the contact out, false to resubscribe.

propertiesobject

Replaces the contact's custom properties. Omit to leave them unchanged; send {} to clear them.

Response

Updated.

idstring uuid required
audienceIdstring uuid required
emailstring email required
firstNamestring nullable
lastNamestring nullable
propertiesobject

Custom properties, usable as {{key}} in a broadcast body.

status'subscribed' | 'unsubscribed' required
unsubscribedAtstring date-time nullable
createdAtstring date-time required
updatedAtstring date-time nullable

Changes

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