Update Subscriber

Patch name, fields, or tags on a contact.

MethodPATCH
/api/v2/subscribers/:subscriber

Patch a contact. :subscriber is an id or email. Delete stays disabled; use Unsubscribe. Permission: subscribers.

Omitted resubscribe does not re-subscribe an unsubscribed contact. Optional skipDoubleOptIn: true promotes PENDING_CONFIRMATION to SUBSCRIBED before tag events.

Path Parameters

NameTypeDescription
subscriberstringRequired. Subscriber id or email.

Body Parameters

NameTypeDescription
emailstringNew email address.
namestring or nullDisplay name.
phonestring or nullPhone number.
tagsstring[]Tag names to attach.
fieldsRecord<string, string | null>Custom field values.
replaceTagsbooleanWhen true, replace existing tags with tags.
resubscribebooleanRe-subscribe an UNSUBSCRIBED contact.
triggerWorkflowsbooleanFire tag / field workflows.
skipDoubleOptInbooleanPromote PENDING_CONFIRMATION to SUBSCRIBED.
ipAddressstringClient IP stored as evidence.
countrystringISO 3166-1 alpha-2 country code.

Response Fields

FieldTypeDescription
idstringSubscriber id.
emailstringEmail address.
namestring or nullDisplay name.
phonestring or nullPhone number.
statusstringCurrent status.
tags{ id, name }[]Current audience tags.
fieldsobjectCustom fields.
warningsstring[]Present when some tags or fields could not be applied.

Errors

StatusnameWhen
401missing_api_keyMissing or invalid bearer token
403missing_permissionToken lacks the subscribers permission
404not_foundUnknown id or email
422validation_errorInvalid payload