Update a list
client.list.update(stringid, ListUpdateParams { fields, relationships } body, RequestOptionsoptions?): ListUpdateResponse { id, createdAt, fields, httpLink }
POST/v1/lists/{id}
Updates an existing list by ID. Only included fields are modified.
Supports idempotency via the Idempotency-Key header.
Required scope: lists:update
Rate limit category: Write
Parameters
id: string
Unique identifier of the list to update.
Returns
Update a list
import Lightfield from 'lightfield';
const client = new Lightfield({
apiKey: 'My API Key',
});
const listUpdateResponse = await client.list.update('id');
console.log(listUpdateResponse.id);{
"id": "id",
"createdAt": "createdAt",
"fields": {
"foo": {
"value": "string",
"valueType": "ADDRESS"
}
},
"httpLink": "httpLink"
}Returns Examples
{
"id": "id",
"createdAt": "createdAt",
"fields": {
"foo": {
"value": "string",
"valueType": "ADDRESS"
}
},
"httpLink": "httpLink"
}