dots.v2.agents.sessions.bySession_id().workspace.upload.post()
Generated on 5 Nov 2026
from DoTs version
v1.23.0
Usage
client.v2.agents.sessions.bySession_id(session_id).workspace.upload.post(body: undefined | ArrayBuffer, requestConfiguration?: RequestConfiguration<UploadRequestBuilderPostQueryParameters>): Promise<undefined | Workspace_upload_response>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
Path Parameters
session_idstring requiredExample:
a1b2c3d4-e5f6-7890-abcd-ef1234567890The session UUID.
Query Parameters
pathstring requiredExample:
exampleDestination path inside the sandbox workspace. Relative paths resolve under the workspace root; paths that escape the workspace are rejected. Required.
isArchiveboolean optionalExample:
trueIf true, the body is a tar stream that the guest extracts under
path. Defaults to false (single file).
Headers
X-Content-Sha256string optionalExample:
exampleOptional hex SHA-256 of the full payload. The guest verifies it after writing; a mismatch returns 400.
Request Body
The request body uses application/octet-stream.
bodystring requiredExample:
example
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.