Delete Contact Avatar
DELETE/accounts/:account_id/contacts/:contact_id/avatar
Remove a contact's avatar image.
To set a new avatar, use Update Contact.
| Setting | Value |
|---|---|
| Method | DELETE |
| Path | /api/v1/accounts/{account_id}/contacts/{contact_id}/avatar |
| Authorization | User token. Same as Retrieve Contact: legacy roles: any agent; new rules: Contacts → read. Agent-bot tokens: not allowed. |
Example request
curl -X DELETE 'https://online.99digital.co.il/api/v1/accounts/12/contacts/801/avatar' \
-H 'api_access_token: <YOUR_API_ACCESS_TOKEN>'
Example response (200 OK): {"payload": { ...contact object without contact_inboxes... }} with "thumbnail": "".
Request
Responses
- 200
- 401
- 403
- 404
The contact, without its avatar.
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.