Write a file (body is the raw content)
PUT /v1/sandboxes/{id}/files
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Sandbox ids are lowercase: sbx_ followed by 16 characters from [a-z0-9]. Hostname labels derived from them are therefore safe to compare after lowercasing.
Query Parameters
Section titled “Query Parameters ”Path inside the sandbox. Must resolve under /work (the writable volume); relative paths are resolved against /work. The root filesystem is read-only.
Octal permission bits, for example 0755
Request Body required
Section titled “Request Body required ”Responses
Section titled “ Responses ”Written
object
Not found
RFC 9457 problem document
object
https://docs.wardcase.com/errors/<slug>. The slug is a stable machine code (PROBLEM_TYPES in @vivarium/contracts).
Field-level validation errors
object
The resource is not in a state that allows this
RFC 9457 problem document
object
https://docs.wardcase.com/errors/<slug>. The slug is a stable machine code (PROBLEM_TYPES in @vivarium/contracts).
Field-level validation errors
object
File larger than the limit (config limits.fileMaxBytes, 50 MiB)
RFC 9457 problem document
object
https://docs.wardcase.com/errors/<slug>. The slug is a stable machine code (PROBLEM_TYPES in @vivarium/contracts).
Field-level validation errors
object
The host reported an error
RFC 9457 problem document
object
https://docs.wardcase.com/errors/<slug>. The slug is a stable machine code (PROBLEM_TYPES in @vivarium/contracts).
Field-level validation errors
object
The host did not answer within the deadline
RFC 9457 problem document
object
https://docs.wardcase.com/errors/<slug>. The slug is a stable machine code (PROBLEM_TYPES in @vivarium/contracts).
Field-level validation errors