Audiences
AuthTokens
Brands
Inbound
Lists
Messages
Notifications
Profiles
Tenants
User Preferences
User Tenants
Lists
Update a list
Create or replace an existing list with the supplied values.
PUT
/
lists
/
{list_id}
Copy
Ask AI
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": {}
}
}'
Copy
Ask AI
{
"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
Response
200 - application/json
The response is of type object
.
Copy
Ask AI
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": {}
}
}'
Copy
Ask AI
{
"id": "<string>",
"name": "<string>",
"created": 123,
"updated": 123
}
Assistant
Responses are generated using AI and may contain mistakes.