lumail.subscribers.update

SDK 2.1.0 · API v2 · PATCH /api/v2/subscribers/:subscriber

MethodPATCH
/api/v2/subscribers/:subscriber

[email protected] · lumail.subscribers

subscribers.update(idOrEmail: string, params: UpdateSubscriberParams): Promise<LumailResult<UpdateSubscriberResponse>>

Patch name, fields, tags. Optional replaceTags, resubscribe, triggerWorkflows, skipDoubleOptIn.

skipDoubleOptIn: true promotes an existing PENDING_CONFIRMATION contact to SUBSCRIBED before tag events. It does not resubscribe UNSUBSCRIBED unless resubscribe is also true.

Path Parameters

NameTypeDescription
idOrEmailstringRequired. Subscriber id or email.

Body Parameters

NameTypeDescription
emailstringNew email address.
namestring or nullDisplay name.
phonestring or nullPhone number.
tagsstring[]Tag names to attach.
fieldsRecordCustom fields. null clears a field.
replaceTagsbooleanWhen true, replace the existing tag set with tags.
resubscribebooleanWhen true, re-subscribe an UNSUBSCRIBED contact. Omitted resubscribe does not re-subscribe.
triggerWorkflowsbooleanWhen true, run subscribe workflows.
skipDoubleOptInbooleanWhen true, promote PENDING_CONFIRMATION to SUBSCRIBED before tag events.
ipAddressstringOptional signup IP.
countrystringOptional country code.

Response Fields

FieldTypeDescription
idstringSubscriber id.
emailstringEmail.
namestring or nullDisplay name.
phonestring or nullPhone.
statusSubscriberStatusCurrent status.
tags{ id, name }[]Attached tags.
fieldsRecordCustom fields.
createdAtstringOptional ISO 8601 timestamp.
updatedAtstringOptional ISO 8601 timestamp.
warningsstring[]Optional non-fatal notes.

data is the subscriber. Failures return { data: null, error: { name, message, statusCode } }.