Audiences
Audit Events
AuthTokens
Inbound
Lists
Messages
Notifications
Profiles
Tenants
Translations
User Preferences
User Tenants
Lists
Replace
PUT
/
lists
/
{list_id}
curl --request PUT \
--url https://api.courier.com/lists/{list_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"preferences": {
"categories": {},
"notifications": {}
}
}'
{
"id": "<string>",
"name": "<string>",
"created": 123,
"updated": 123
}
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.
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} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"preferences": {
"categories": {},
"notifications": {}
}
}'
{
"id": "<string>",
"name": "<string>",
"created": 123,
"updated": 123
}