Update a mailing list

POST https://api.tamio.com/v2/mailing-lists/update/{uuid}

Updates the label of an existing mailing list. Only the label can be modified after creation.

Path Parameters

uuid string*

UUID of the mailing list to update

Body Parameters

label string*

New label for the mailing list

Responses

200 Mailing list updated successfully

Mailing list updated successfully

status integer
mailing_list MailingList
400 Bad request. Possible `error_code` values:
401 Missing or invalid API key
/mailing-lists/update/{uuid}
1const response = await fetch("https://api.tamio.com/v2/mailing-lists/update/{uuid}", {
2 method: "POST",
3 headers: {
4 "Authorization": "Bearer YOUR_API_KEY",
5 "Content-Type": "application/json"
6 },
7 body: JSON.stringify({
8 // ... request body
9 })
10});
11const data = await response.json();
Responses
{
  "status": 200,
  "mailing_list": {
    "id": "string",
    "object": "mailing_list",
    "label": "VIP Customers",
    "created_at": 1700000000,
    "number_of_subscribers": 245,
    "number_of_newsletters": 12,
    "audience": {},
    "last_campaign_date": 1704153600
  }
}