Add file to a company
post/api/v1/companies/{id}/filesAdds a file to an existing company by ID.
Code snippet
curl -X 'POST' \
'https://{yourdomain}/api/v1/companies/{id}/files' \
-H "accept: text/plain"
-H "x-api-version: 1.0"
-H "x-api-key: {your API key}"
-H "Content-Type: multipart/form-data"
-F "[email protected];type=application/json"
Path parameters
| idlongRequired | The unique identifier of the company to which the file will be attached. |
Request body
| filestringRequired | The file to attach to the company. Supported input format: binary. The maximum supported file size is 20 MB. |
Example response
200 OK
{
"message": "File uploaded successfully."
}