Skip to main content

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.

ActionMethodPath
Update a file commentPATCH/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​

All the contact's files, with the updated comment.