Delete Contact Custom Attributes
POST/accounts/:account_id/contacts/:contact_id/destroy_custom_attributes
Removes the given keys from the contact's custom attributes.
The other custom attributes are kept. To add or change values, use Update Contact, which merges custom_attributes.
| Setting | Value |
|---|---|
| Method | POST |
| Path | /api/v1/accounts/{account_id}/contacts/{contact_id}/destroy_custom_attributes |
| Authorization | User token. Same as Update Contact: legacy roles: any agent; new rules: Contacts → update. Agent-bot tokens: not allowed. |
Body parameters (JSON)
| Name | Type | Required | Description |
|---|---|---|---|
custom_attributes | string[] | Yes | Keys to remove. |
Example request
curl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/contacts/801/destroy_custom_attributes' \
-H 'api_access_token: <YOUR_API_ACCESS_TOKEN>' \
-H 'Content-Type: application/json' \
-d '{ "custom_attributes": ["plan"] }'
Example response (200 OK). The contact_inboxes list is truncated.
{
"payload": {
"additional_attributes": {
"company_name": "Example Ltd",
"city": "Tel Aviv"
},
"availability_status": "offline",
"email": "dana.cohen@example.com",
"id": 801,
"name": "Dana Cohen",
"phone_number": "+972501234567",
"identifier": "crm-801",
"thumbnail": "",
"custom_attributes": {
"customer_tier": "gold"
},
"blocked": false,
"is_whatsapp_contact": false,
"created_at": 1794470500,
"email_or_phone_optional": false,
"contact_inboxes": []
}
}
Request
Responses
- 200
- 401
- 403
- 404
The contact, without the removed keys.
The access token is missing or wrong, or its user does not belong to this account.
The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.
The resource does not exist in this account.