REST API: persons
Delete persons
Remove persons from a list.
Purpose
Use this call to delete one person or several at once. The answer counts the records that existed and were deleted.
Request
POST <API_BASE_URL>/person/delete. All calls are POST under your API address. Replace <API_BASE_URL> with the API address provided with your access.
Send a permanent API token in the token field of the body, or a user token in the token header. See authentication.
Content type: application/json.
| Field | Type | Required | Description |
|---|---|---|---|
token | string (uuid) | if no header | Your permanent API token. Required unless you send a user token in the token header. |
person_id | array of string (uuid) or string | yes | One person identifier, or an array of identifiers. |
list_id | string (uuid) | no | The list the persons belong to. |
Response
HTTP 200. The records that existed were deleted.
| Field | Type | Description |
|---|---|---|
status | string | Always ok on this body. |
message | string | Counts the deleted records. Never branch on it. |
Errors
400: The body failed validation. The answer hasstatusoferrorand adetailslist with one entry per offending field (path,expected,actual).401: The token is missing, expired or unknown.404: A referenced entity does not exist.
A refusal can also come before the operation runs: an address outside your IP allowlist, a token bound to another address, or a body that is not valid JSON. See response format and errors.
Example
Request:
curl -X POST "<API_BASE_URL>/person/delete" \
-H "Content-Type: application/json" \
-d '{
"token": "<your permanent API token>",
"person_id": [
"<person id>"
],
"list_id": "<person list id>"
}'
Response:
{
"status": "ok",
"message": "<detail>"
}