Remove newsletter list

Remove one list from a newsletter subscriber, found by email.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Overview

Remove one list from a newsletter subscriber, found by email. The subscriber's other lists stay as they are.

Example: A subscriber on marketing,product opts out of marketing emails. Call this endpoint with list set to marketing. Their lists become product.


Behavior

  • Lookup: The subscriber is found by email on the site given in site_id. If no newsletter record exists for that email on that site, the call returns 404. It does not create a record.
  • Only lists changes: Every other field, including the consent fields, is left as it is.
  • Exact match: List names are case-sensitive. News and news are two different lists.
  • One list per call: list is a single list name of up to 255 characters. It cannot contain a comma.
  • Not on the list: If the subscriber does not have the list, the call returns 200 with the record unchanged. No webhook fires.
  • Last list removed: When the only remaining list is removed, lists becomes null. The newsletter record and its consent fields are kept.
  • Webhook: When the lists change, a newsletter.updated webhook fires with the old value in previous_attributes.lists.
  • Cleanup: When the lists change, the stored value is rewritten without extra spaces, empty entries or duplicates.

To add a list, use Add newsletter list. To delete the subscriber entirely, use Delete newsletter.

Query Params
int32
required
≥ 1

The unique identifier of the site associated with your account.

string
required

The subscriber's email address. Must match an existing newsletter record on the site.

string
required
length ≤ 255

The name of one list. Case-sensitive. Cannot contain a comma.

Responses

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json