Upload files to custom fields
Post the necessary fields for the API to upload files. The files need to be a buffer with the key ”< custom_field_id >_< file_id >”.
Here custom field id is the ID of your custom field and file id is a randomly generated id (or uuid)
There is support for multiple file uploads as well. Have multiple fields in the format mentioned.
File size is limited to 50 MB.
The allowed file types are:
- DOCX
- DOC
- JPG
- JPEG
- PNG
- GIF
- CSV
- XLSX
- XLS
- MP4
- MPEG
- ZIP
- RAR
- TXT
- SVG
The API will return the updated contact object.
Authorizations
Use the Access Token generated with user type as Sub-Account (OR) Private Integration Token of Sub-Account.
Headers
API Version
2021-07-28 Query Parameters
Contact ID to upload the file to.
"dtEv6KtI27yF92YPm3Zz"
Location ID of the contact.
"quXmPY59n1zgGBabY1bZ"
Response
Successful response