Upload files to custom fields

POSThttps://services.leadconnectorhq.com/forms/upload-custom-files

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:

  • PDF
  • DOCX
  • DOC
  • JPG
  • JPEG
  • PNG
  • GIF
  • CSV
  • XLSX
  • XLS
  • MP4
  • MPEG
  • ZIP
  • RAR
  • TXT
  • SVG


The API will return the updated contact object.

Request

Use the Access Token generated with user type as Sub-Account (OR) Private Integration Token of Sub-Account.

Provide your bearer token in the Authorization header when making requests to protected resources.

Example: Authorization: Bearer 123
Query Parameters
contactId
string
required

Contact ID to upload the file to.

Examples:
dtEv6KtI27yF92YPm3Zz
locationId
string
required

Location ID of the contact.

Examples:
quXmPY59n1zgGBabY1bZ
Headers
Authorization
string
required

Access Token

Example:
Bearer 9c48df2694a849b6089f9d0d3513efe
Version
string
required

API Version

Allowed value:
2021-07-28

Responses

Successful response

Unprocessable Entity

statusCode
number
Example:
422
message
array[string]
Example:
["Unprocessable Entity"]
error
string
Example:
Unprocessable Entity

Unauthorized

statusCode
number
Example:
401
message
string
Example:
Invalid token: access token is invalid
error
string
Example:
Unauthorized

Bad Request

statusCode
number
Example:
400
message
string
Example:
Bad Request