contacts:delete| Field | Type | Required | Description |
|---|---|---|---|
ids | array | Yes | Array of contact IDs (integers) to delete |
| Field | Type | Description |
|---|---|---|
success | boolean | Whether the operation succeeded |
summary.total | integer | Total IDs submitted |
summary.deleted | integer | Number successfully deleted |
summary.failed | integer | Number that failed (IDs not found or not belonging to tenant) |
Note: If an ID does not exist or does not belong to the tenant, it is counted as failed(not an error). The operation still succeeds.
| Status | Code | Description |
|---|---|---|
| 500 | INTERNAL_ERROR | Batch delete failed (database error, transaction rolled back) |
curl --location --request DELETE '/contacts/batch' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json'{}