v37

latestOpenAPI 3.1.0raw.githubusercontent.com2025-11-11200148.2 KB
Stacks

Write a file to the sandbox

Writes file content to a path inside the sandbox (via mount or exec under the hood)

post/v1/stacks/{id}/write-file

Path parameters

idstring required

Stack identifier

Example:stk_abc123

Request body

pathstring required

Absolute path inside the sandbox

contentstring required

File contents

Example request

{
  "path": "/workspace/index.html"
}

Response

File write result

sandbox_pathstring
methodstring
messagestring
host_pathstring