Update a List
List_id is not reuseable
A deleted list_id
can be restored via the Restore a List API and once deleted cannot be used to create a new list.
Example
Method: PUT
URL: https://api.courier.com/lists/abcdefgh12345678
Body:
{
"name": "Example List Name",
"preferences": {
"notifications": {
"abcdefgh12345678": {
"channel_preferences": [
{
"channel": "direct_message"
}
],
"rules": [
{
"type": "snooze"
}
],
"status": "OPTED_IN"
}
},
"categories": {
"cooking": {
"channel_preferences": [
{
"channel": "direct_message"
}
],
"rules": [
{
"type": "snooze"
}
],
"status": "OPTED_IN"
}
}
}
}