Skip to main content
POST
/
v1
/
volumes
/
{id}
/
uploads
/
{upload_id}
/
complete
Complete and publish a resumable volume upload session
import requests

url = "https://api.13-215-85-171.sslip.io/v1/volumes/{id}/uploads/{upload_id}/complete"

payload = { "whole_checksum_sha256": "<string>" }
headers = {
    "Idempotency-Key": "<idempotency-key>",
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
{
  "session": {
    "upload_id": "<string>",
    "target_path": "<string>",
    "content_length": 123,
    "accepted_bytes": 123,
    "reserved_staging_bytes": 123,
    "part_size": 123,
    "part_count": 123,
    "max_concurrency": 123,
    "checksum_algorithm": "sha256",
    "limits": {
      "max_upload_bytes": 123,
      "max_part_bytes": 123,
      "max_concurrency": 123,
      "staging_quota_bytes": 123
    },
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z",
    "expires_at": "2023-11-07T05:31:56Z",
    "next_part": 123,
    "archive_format": "tar",
    "whole_checksum_sha256": "<string>"
  },
  "published_bytes": 123,
  "published_file_count": 123
}

Authorizations

Authorization
string
header
required

API key passed as Bearer token

Headers

Idempotency-Key
string
required

Reuse the same key to safely retry the same create, reusable snapshot create, fork, upload create/complete, or agent deployment create operation without duplicating work.

Path Parameters

id
string
required

Volume ID

upload_id
string
required

Upload session identifier.

Body

application/json
whole_checksum_sha256
string

Response

Upload session completed and published

session
object
required
published_bytes
integer<uint64>
required
published_file_count
integer<uint64>
required