Complete

Complete file upload

post

Complete the upload specified by unique ID, providing all the data in the body, if necessary. A request without a body will just complete the upload with previously uploaded content.

Authorizations
Path parameters
idstringrequired

The universally unique identifier (UUID).

Example: 52e51422-573d-4fc9-b5c6-4a30058f5d71
Query parameters
digeststringoptional

The Content Digests. A digest is a serialized hash result, consisting of a algorithm and hex portion. Only sha256 based digest accepted.

Example: 84d89877f0d4041efb6bf91a16f0248f2fd573e6af05c19f96bedb9f882f7882
Header parameters
PortSIP-Upload-Tokenstringrequired

The upload token of file upload.

Body
string · binaryoptional
Responses
curl -L \
  --request POST \
  --url 'https://HOSTNAME:8887/api/blobs/uploads/{id}/complete' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
  --header 'PortSIP-Upload-Token: text' \
  --header 'Content-Type: application/octet-stream' \
  --data '"binary"'
{
  "id": "NzAwNTUxOTA5NzczMTQ4MTYw"
}

Was this helpful?