post https://{your-drive}.kommo.com/v1.0/sessions
The method allows you to create a session to upload a file or version of a file. If the method is used to upload a new version of a file, then the uploaded version will automatically become the active version of the file. The request must be sent to the file service host.
Not sure what your drive name is?
Read a short article to find out.
Limitations
The method is available to integrations that have scope set to Access to files.
Data type header when the request is successful/ in case of an error
Content-Type: application/json
Response parameters
Parameter | Data type | Description |
---|---|---|
session_id | int | Session ID |
upload_url | string | URL the first part of the file should be uploaded to |
max_file_size | int | Maximum file size |
max_part_size | int | Maximum size of the uploaded part of a file |