Contacts: Lists
Update List
Change the name, description, source or custom data of a list. Only what you send changes.
https://g.sendcorex.com/v1/contactscommand: update_listNeeds the contact:update scope on your API key.
Arguments
list_idstringrequiredThe list to change. The id itself cannot change.
e.g.
"customers"namestringoptionalNew name.
nullclears it.descriptionstringoptionalNew description.
nullclears it.sourcestringoptionalNew source.
nullclears it.customobjectoptionalMerged into the current custom data. A key sent as
nullis removed.e.g.
{ "year": null, "owner": "sales" }
Quick start
import axios from 'axios';
const response = await axios.post(
'https://g.sendcorex.com/v1/contacts',
{
commands: [
{
command: "update_list",
args: {
list_id: "customers",
name: "Customers (VIP)",
custom: {
year: null,
owner: "sales"
}
}
}
]
},
{ headers: { Authorization: process.env.SENDCOREX_API_KEY } },
);
const [result] = response.data.results;
if (result.type !== 'SUCCESS') throw new Error(`${result.code}: ${result.message}`);
console.log(result.data);Response
{
"type": "SUCCESS",
"results": [
{
"command": "update_list",
"id": "0",
"type": "SUCCESS",
"took_ms": 14,
"data": {
"list_id": "customers",
"name": "Customers (VIP)",
"description": "Everyone who bought at least once",
"source": "checkout",
"status": "ready",
"custom": {
"origin": "checkout",
"owner": "sales"
},
"created_at": "2026-10-01T10:00:00.000Z",
"updated_at": "2026-10-12T15:22:41.000Z",
"stats": {
"total": 1834,
"ok": 1790,
"opened": 912,
"clicked": 233
}
}
}
]
}Response fields
(list)The list after the change, with
stats.
Errors
HTTP-level errors return type, code and message. Errors marked CMD come back inside the command result, with HTTP 200.
- 401
INVALID_API_KEYThe API key does not exist, was revoked or was disabled in the dashboard.
- 429
RATE_LIMITEDMore than 15 requests/s or 15 in flight for the same IP + API key. Wait the number of seconds in Retry-After.
- CMD
MISSING_SCOPEThe API key does not have the scope this command needs. The other commands in the request still run.
- CMD
INVALID_ARGSA required argument is missing or invalid: email, field value, enum option, where key, list id…
- CMD
NOT_FOUNDThe contact, list, field or segment does not exist.
- CMD
INTERNALServer error. The detail is only written to the server log.