Update a recipient
curl --request PATCH \ --url https://rocketem.fotone.io/api/v2/recipients \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "audience": "aud_xxxxxxxxxxxx", "email": "hello@example.com", "tracking_consent": true, "tracking_consent_at": "2026-04-15T12:00:00Z", "external_id": "example", "salutation": "example", "first_name": "example", "last_name": "example", "company": "example", "title": "example", "phone": "example", "street": "example", "address2": "example", "zip": "example", "city": "example", "region": "example", "country": "example", "birthday": "2026-04-15", "language": "example", "language_edited": true, "total_revenue": 1, "order_count": 1, "first_order_date": "2026-04-15", "last_order_date": "2026-04-15" }'Required scope: recipients:write
Updates an existing recipient. Email is required in the body to identify the recipient. Only provided fields are updated.
Authorizations
Abschnitt betitelt „Authorizations“Parameters
Abschnitt betitelt „Parameters“Header Parameters
Abschnitt betitelt „Header Parameters“Unique key for idempotent requests. Responses cached 24h.
Request Bodyrequired
Abschnitt betitelt „Request Bodyrequired“Email is required to identify the recipient. Other fields are optional. In addition to the fields below, the organisation’s custom fields (discover via GET /recipients/schema) are accepted under their own names, validated by their column type.
object
The audience to work on, by its identifier (aud_ plus 12 characters): in the app under Settings > Preference
Center > General (and Settings > API with Custom Audiences on), or as id in GET /audiences. The first audience’s identifier, or none, addresses the newsletter. A
Custom Audience’s table has no shop
figures (total_revenue, order_count, first_order_date, last_order_date: 422); the organisation’s
custom fields exist there too (since 2.3.0); its
doi_status is one of pending, confirmed, not_required, unsubscribed, cleaned. A newsletter opt-out does
not block an audience; complaints, bounces and legal blocks do.
Example
aud_xxxxxxxxxxxxRequired — identifies the recipient
Tracking consent (opens/clicks) from your system; needs tracking_consent:write. Same rules as a file import: without tracking_consent_at it never changes a stored decision; false only withdraws an older consent; a withdrawal the person made in rocketEM is never lifted. For single withdrawals use PUT /recipients/tracking-consent.
When the person decided in your system (not in the future)
Ignored (not an error) when the stored language is a conscious recipient choice (language_edited flag set) and this request does not send language_edited=true — same protection rule the shop sync follows.
True marks the submitted language as a CONSCIOUS recipient choice (e.g. from a shop account form): the language is then written even over an existing preference-center choice, and the recipient’s language_edited flag is set. false has no effect — a choice can never be unset via the API.
Responses
Abschnitt betitelt „Responses“Recipient updated
object
A recipient of the list. PII fields (email, name, address, phone)
are only included if the token has recipients:read_pii scope.
The organisation’s custom fields (see GET /recipients/schema) are also
included under their own names; they are always treated as PII.
With audience the row comes from the audience table: no shop figures and no custom fields, but
birthday, source and extra (the signup form’s own fields, JSON); birthday and extra need recipients:read_pii.
object
Requires read_pii scope
Requires read_pii scope
Requires read_pii scope
Requires read_pii scope
Requires read_pii scope
Requires read_pii scope
Requires read_pii scope
Requires read_pii scope
Requires read_pii scope
Requires read_pii scope
Requires read_pii scope
Requires read_pii scope
Requires read_pii scope
1 when the language is a conscious recipient choice (preference center, or language_edited=true via PATCH). Plain API language writes no longer overwrite it.
When the DOI email was sent
When the recipient confirmed the DOI
JSON encoded
Only when tracking_consent was sent; failed = the recipient change was saved, the consent was not (send it again)
Example
{ "data": { "doi_status": "not_required" }, "tracking_consent": "granted"}Tracking_consent sent without the tracking_consent:write scope
Resource not found
object
object
Example generated
{ "error": { "code": "example", "message": "example", "status": 1 }}Validation failed
object
object
object
Example
{ "error": { "code": "validation_error", "message": "The given data was invalid.", "status": 422 }}