Sandboxes

Save a sandbox file as a project file

Save a file of the running sandbox as a project file, up to 5 GiB. A taken file_path is a 409 unless overwrite is true. Admitted like any upload: its storage is charged to the project from credits, and without credits or at a spend limit it is refused with 402.

post/v1/sandboxes/{sandbox_id}/files/export

Request

  • Base URL
    https://api.dexto.ai
  • URL
    https://api.dexto.ai/v1/sandboxes/{sandbox_id}/files/export
  • Auth
    HTTP bearer

Path parameters

sandbox_idstring required

Request body

content_typestring

The file's media type; inferred from its extension when omitted.

file_pathstring required

The project file path to save it as.

overwriteboolean

Replace a project file that already has file_path.

pathstring required

The sandbox file, under /workspace.

Response

Replaced the file at file_path.

content_typestring required
created_atstring date-time required
expires_atstring date-time nullable required
idstring uuid required
metadataobject required
object'file' required
pathstring required
sha256string required
size_bytesinteger required
updated_atstring date-time required

Changes

No recorded changes to this operation across all 1 revision of this API.