POST
/
v1
/
devboxes
/
{id}
/
write_file_contents

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

The Devbox ID.

Body

application/json
contents
string
required

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

file_path
string
required

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

Response

200 - application/json
devbox_id
string
required

Devbox id where command was executed.

exit_status
integer
required

Exit status of command execution.

stderr
string
required

Standard error generated by command.

stdout
string
required

Standard out generated by command.

shell_name
string | null

Shell name.