pydo.harness.create_session_workspace_upload()
Generated on 6 Nov 2026
from pydo version
v0.45.0
Usage
client.harness.create_session_workspace_upload(
session_id="a1b2c3d4-e5f6-7890-abcd-ef1234567890",
path="example",
is_archive=None,
x_content_sha256=None,
body={...},
)Description
Streams the raw request body to a path inside the sandbox workspace. Concurrent transfers (upload + download) are capped server-side; over the cap the request blocks and may return 503. The optional X-Content-Sha256 request header carries a hex digest the guest verifies after the full payload is written.
Parameters
session_idstring requiredExample:
a1b2c3d4-e5f6-7890-abcd-ef1234567890The session UUID.
pathstring requiredExample:
exampleDestination path inside the sandbox workspace. Relative paths resolve under the workspace root; paths that escape the workspace are rejected. Required.
is_archiveboolean optionalExample:
TrueIf true, the body is a tar stream that the guest extracts under
path. Defaults to false (single file).x_content_sha256string optionalExample:
exampleOptional hex SHA-256 of the full payload. The guest verifies it after writing; a mismatch returns 400.
bodyJSON or IO[bytes] requiredRaw file bytes (or tar stream when is_archive=true). Capped at 500 MiB.
Response Example
More Information
See /v2/agents/sessions/{session_id}/workspace/upload in the API reference for additional detail on responses, headers, parameters, and more.