Sandboxes

Batch-write multiple files in a single request. Mirrors `@vercel/sandbox` `writeFiles()`. Semantics are fail-fast: if any file errors, previously-written entries are left in place and the error describes which file broke.

Changed on
post/v1/sandboxes/{id}/fs/write-batch

Request

  • Base URL
    /api (relative, and the document was published on a file host, not at the API’s origin)
  • Auth
    HTTP bearer

Path parameters

idstring required

Request body

Response

All files written

writteninteger required

Number of files successfully written before the first failure (if any). On full success this equals files.len().

Changes