Skip to main content

Modify List Items

Route

/v2/lists/{id}/items/modify

Description

Modify multiple items in a list with bulk operations. This endpoint supports adding, updating, and removing items in a single request.

Method

POST

Inputs

ParameterTypeRequiredDescription
idstringYesThe unique identifier of the list
operationsarray[Operation]YesArray of modification operations

Operation Object

ParameterTypeRequiredDescription
actionstringYesOperation type (add, update, remove)
item_idstringNoItem ID (required for update/remove)
valuestringNoItem value (required for add/update)
descriptionstringNoItem description
metadataobjectNoAdditional item metadata

Request Body

{
"operations": [
{
"action": "add",
"value": "new@company.com",
"description": "New executive email",
"metadata": {
"category": "executive",
"priority": "high"
}
},
{
"action": "update",
"item_id": "item-456",
"value": "updated@company.com",
"description": "Updated email address",
"metadata": {
"category": "executive",
"priority": "medium"
}
},
{
"action": "remove",
"item_id": "item-789"
}
]
}

Output

FieldTypeDescription
list_idstringList identifier
resultsarray[OperationResult]Results for each operation
summaryobjectSummary of operations performed
errorsarray[Error]Any errors encountered

Operation Result Object

FieldTypeDescription
operation_indexintegerIndex of operation in request
actionstringOperation type performed
successbooleanWhether operation succeeded
item_idstringItem ID (for successful operations)
errorstringError message (for failed operations)

Summary Object

FieldTypeDescription
total_operationsintegerTotal number of operations
successful_operationsintegerNumber of successful operations
failed_operationsintegerNumber of failed operations
items_addedintegerNumber of items added
items_updatedintegerNumber of items updated
items_removedintegerNumber of items removed

Rate Limit

  • 60 requests per minute per API key
  • 5 concurrent requests per endpoint

Example Response

{
"list_id": "list-123",
"results": [
{
"operation_index": 0,
"action": "add",
"success": true,
"item_id": "item-new123"
},
{
"operation_index": 1,
"action": "update",
"success": true,
"item_id": "item-456"
},
{
"operation_index": 2,
"action": "remove",
"success": true,
"item_id": "item-789"
}
],
"summary": {
"total_operations": 3,
"successful_operations": 3,
"failed_operations": 0,
"items_added": 1,
"items_updated": 1,
"items_removed": 1
},
"errors": []
}

Error Response

{
"list_id": "list-123",
"results": [
{
"operation_index": 0,
"action": "add",
"success": false,
"error": "Duplicate value not allowed"
}
],
"summary": {
"total_operations": 1,
"successful_operations": 0,
"failed_operations": 1,
"items_added": 0,
"items_updated": 0,
"items_removed": 0
},
"errors": []
}