API reference
All operations
UTILITY

Uploads a file and attaches it to a crmSeries record.

Send as `multipart/form-data` with `file`, `recordType` and either `recordId` or `externalId`. Supported record types: `Contact`, `Company`, `Equipment`, `Opportunity`, `Lead`, `Task` and `Note`. When `externalId` is given and is linked to a record of that type, that record is used; otherwise `recordId` is used. The upload is recorded in the record's history.

POST/api/v2/utility/file-upload

Authentication

Choose one supported method for this request.

OAuth 2.0 client credentials

Request body

application/x-www-form-urlencodedrequired

The file, the record type, and the crmSeries record ID or your external ID of the record.

object
  • Filefile
  • RecordTypestring
  • RecordIdinteger · int32
  • ExternalIdstring

Responses

File uploaded and attached to the record.

Standard response envelopeisSuccessmessageerrorsdata

Read the result from data. When isSuccess is false, errors lists what went wrong. Handling errors

databoolean
boolean