Audiences
Audit Events
AuthTokens
Inbound
Lists
Messages
Notifications
Profiles
Tenants
Translations
User Preferences
User Tenants
Lists
Recipient subscribe
PUT
/
lists
/
{list_id}
/
subscriptions
/
{user_id}
curl --request PUT \
--url https://api.courier.com/lists/{list_id}/subscriptions/{user_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"preferences": {
"categories": {},
"notifications": {}
}
}'
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
A unique identifier representing the list you wish to retrieve.
A unique identifier representing the recipient associated with the list
Body
application/json
Available options:
OPTED_IN
, OPTED_OUT
, REQUIRED
Available options:
OPTED_IN
, OPTED_OUT
, REQUIRED
curl --request PUT \
--url https://api.courier.com/lists/{list_id}/subscriptions/{user_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"preferences": {
"categories": {},
"notifications": {}
}
}'