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

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

list_id
string
required

A unique identifier representing the list you wish to retrieve.

Body

application/json
name
string
required
preferences
object

Response

200 - application/json
id
string
required
name
string
required
created
integer | null
updated
integer | null