Upload a file

Authentication

api-keystring

The API key should be passed in the request headers as api-key for authentication.

Request

This endpoint expects a multipart form containing a file.
companyIdstringOptional
contactIdlongOptional
dealIdstringOptional
filefileRequired
File data to create a file.

Response

Returns the created File with additional details
authorIdstring or null
Account id of user which created the file
companyIdstring or null
Company id linked to a file
contactIdlong or null
Contact id of contact on which file is uploaded
createdAtdatetime or null

File created date/time

dealIdstring or null
Deal id linked to a file
namestring or null
Name of uploaded file
sizelong or null
Size of file in bytes

Errors