Update Contact File
PATCH/accounts/:account_id/contacts/:contact_id/update_file/:file_id
Change the comment of a file attached to a contact's profile.
Documents attached to a contact profile (for example contracts or ID scans), with an optional comment.
| Action | Method | Path |
|---|---|---|
| Update a file comment | PATCH | /api/v1/accounts/{account_id}/contacts/{contact_id}/update_file/{file_id} |
Authorization: user token. Listing requires the Retrieve Contact permission (new rules: Contacts → read). Uploading, updating and deleting require the Update Contact permission (new rules: Contacts → update). Legacy roles: any agent. Agent-bot tokens: not allowed.
Update (JSON) parameters: comment (string, max 500 characters). Send an empty string to clear it.
Example: update the comment
curl -X PATCH 'https://online.99digital.co.il/api/v1/accounts/12/contacts/801/update_file/3101' \
-H 'api_access_token: <YOUR_API_ACCESS_TOKEN>' \
-H 'Content-Type: application/json' \
-d '{ "comment": "Paid invoice for order A-1001" }'
Response (200 OK): all files of the contact, with the updated comment.
file_type is image, audio, video or the file's MIME type. thumb_url is returned only for images.
Request
Responses
- 200
- 401
- 403
- 404
All the contact's files, with the updated comment.
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.