Upload a file

Request

Uploads a file in chunks or as a whole. The URL is generated by the upload URL endpoint. When uploading in chunks, the current chunk number starts at 0 and the total number of chunks must be provided as a query string parameter. Multiple chunks can be uploaded in parallel. To notify that the last chunk has been uploaded and no more are expected, a final request needs to be made with only the parameter of the chunk.

Security
OAuth2
Query
keystringrequired

The file identifier.

namestringrequired

The file name.

expiresstring, (date-time)required

The expiration date of the request after which the upload URL becomes invalid.

chunkinteger, (int32)

When uploading in chunks, the current chunk number.

chunksinteger, (int32)

When uploading in chunks, the total number of chunks.

curl -i -X POST \
  'https://your-server/api/v2.0/upload/process?key=string&name=string&expires=2019-08-24T14%3A15%3A22Z&chunk=0&chunks=0' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

File successfully uploaded

Bodyapplication/json
successboolean
messagestring or null
Response
{ "success": true, "message": "string" }