v49

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-01151216390.1 KB
Devbox
Devbox-FileTools

Write text file contents to Devbox filesystem.

Write UTF-8 string contents to a file at path on the Devbox. Note for large files (larger than 100MB), the upload_file endpoint must be used.

post/v1/devboxes/{id}/write_file_contents

Path parameters

idstring required

The Devbox ID.

Request body

file_pathstring required

The path to write the file to on the Devbox. Path is relative to user home directory.

contentsstring required

The UTF-8 string contents to write to the file.

Response

OK

devbox_idstring required

Devbox id where command was executed.

stdoutstring required

Standard out generated by command.

stderrstring required

Standard error generated by command.

exit_statusinteger required

Exit status of command execution.

shell_namestring nullable

Shell name.