import Courier from '@trycourier/courier';const client = new Courier({ apiKey: process.env['COURIER_API_KEY'], // This is the default and can be omitted});await client.lists.update('list_id', { name: 'name' });
Lists
Update a list
Create or replace an existing list with the supplied values.
PUT
/
lists
/
{list_id}
JavaScript
Copy
Ask AI
import Courier from '@trycourier/courier';const client = new Courier({ apiKey: process.env['COURIER_API_KEY'], // This is the default and can be omitted});await client.lists.update('list_id', { name: 'name' });