Upload a volume file
Creates the file and its parent directories, or replaces the file.
PUT
/v1/sessions/{session_id}/volume/{area}/{path}Authorization
AuthorizationBearer token · headerrequiredPath parameters
session_idstring<uuid>requiredSession id
areaVolumeAreaParamrequiredThe area the file sits in.
Allowed:
tmpdatapathstringrequiredThe file's path in the area, e.g. `notes/a.txt`.
Request body
requiredapplication/octet-streamThe file's bytes, at most 1 GiB.
string<binary>Responses
200The file as written.
bytesinteger<int64>requiredmin 0
pathstringrequiredThe file's path in the area.
400Malformed path parameter, the data area where the root agent does not enable it, a path the volume cannot hold, or a body over 1 GiB.
errorErrorDetailrequiredWhat went wrong: a `code` to branch on and a `message` to show. The
message is written for a person and may change; the code will not.
Show propertiesHide properties
codeErrorCoderequiredThe machine-readable half of an error response, and the field a client
branches on. Closed: every error carries exactly one of these.
Allowed:
unauthorizedforbiddennot_foundinvalid_requestconflictclient_outdatedprecondition_failedtoo_many_requestsinternalmessagestringrequired401Missing, malformed, or invalid bearer token.
errorErrorDetailrequiredWhat went wrong: a `code` to branch on and a `message` to show. The
message is written for a person and may change; the code will not.
Show propertiesHide properties
codeErrorCoderequiredThe machine-readable half of an error response, and the field a client
branches on. Closed: every error carries exactly one of these.
Allowed:
unauthorizedforbiddennot_foundinvalid_requestconflictclient_outdatedprecondition_failedtoo_many_requestsinternalmessagestringrequired403A workspace credential lacking session.manage, an organization suspended or out of credit, or a volume its last hourly measurement found at or over its 10 GiB quota; reads and deletes still work, and writes resume once a measurement finds it under. A session token may act only on its own session and never lands here.
errorErrorDetailrequiredWhat went wrong: a `code` to branch on and a `message` to show. The
message is written for a person and may change; the code will not.
Show propertiesHide properties
codeErrorCoderequiredThe machine-readable half of an error response, and the field a client
branches on. Closed: every error carries exactly one of these.
Allowed:
unauthorizedforbiddennot_foundinvalid_requestconflictclient_outdatedprecondition_failedtoo_many_requestsinternalmessagestringrequired404No such session, or the caller cannot see it, or the tree has no function grant, or the deployment runs no functions.
errorErrorDetailrequiredWhat went wrong: a `code` to branch on and a `message` to show. The
message is written for a person and may change; the code will not.
Show propertiesHide properties
codeErrorCoderequiredThe machine-readable half of an error response, and the field a client
branches on. Closed: every error carries exactly one of these.
Allowed:
unauthorizedforbiddennot_foundinvalid_requestconflictclient_outdatedprecondition_failedtoo_many_requestsinternalmessagestringrequired