Prepare the upload
Prepare the upload of a file in chunks.
Body
application/json
Body
Response
application/json
Response
Successful response
File ID to be used in subsequent upload steps.
Example:00000000-0000-0000-0000-000000000000
Authentication
Body
Step 2
This endpoint uploads a chunk of the file. You need to provide the file ID obtained from the prepare upload step and the chunk number (starting from 0). The request body should contain the binary data of the chunk being uploaded.
Upload a file chunk
Upload a chunk of the file.
Path Parameters
The file ID retrieved from the prepare upload step.
Example:00000000-0000-0000-0000-000000000000
The number of the chunk being uploaded. The first chunk is 0.
Headers
Allowed values:application/octet-stream
(calculated checksum of the file/ chunk)
Example:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
Body
application/octet-stream
Body
Response
Response
Chunk uploaded successfully
Authentication
Path Parameters
Headers
Body
Step 3
This endpoint finalizes the upload after all chunks have been uploaded. You need to provide the file ID and details about the file, including its name, size, and the number of chunks it was split into.
Finalize the upload
Finalize the upload after all chunks have been uploaded.
Path Parameters
The file ID retrieved from the prepare upload step.
Example:00000000-0000-0000-0000-000000000000
Body
application/x-www-form-urlencoded
Body
Number of chunks the file was split into.
Example:1
Filename of the file.
Example:image.jpeg
Size of the file in bytes.
Example:63973541
Response
Response
Upload finalized successfully