Finish a resumable folder upload and unpack it into the workspace [write]

Changed on

Checks the parts' total size and sha256 against the declaration, then has the pod pull and unpack the folder in the background, exactly as /workspace/import would; poll the upload until its state is imported or failed. Calling it again is safe. 202 while importing. 409 parts_missing, 422 size_mismatch or checksum_mismatch, 409 import_unsupported when the session's runtime predates resumable imports (use /workspace/import).

post/sessions/{id}/workspace/imports/{upload_id}/complete

Request

  • Base URL
    https://api.agentsky.dev/v1
  • URL
    https://api.agentsky.dev/v1/sessions/{id}/workspace/imports/{upload_id}/complete
  • Auth
    HTTP bearer

Path parameters

idstring required

The session id

upload_idstring required

Response

OK

idstring
namestring
sizeinteger
sha256string
part_sizeinteger
partsinteger

how many parts the upload has

receivedinteger[]

part numbers already stored

state'uploading' | 'verified' | 'importing' | 'imported' | 'failed'
pathstring

where the folder landed, once imported

filesinteger

files unpacked, once imported

Changes