POST
/
v1
/
devboxes
/
{id}
/
write_file_contents
import Runloop from '@runloop/api-client';

const client = new Runloop({
  bearerToken: process.env['RUNLOOP_API_KEY'], // This is the default and can be omitted
});

async function main() {
  const devboxExecutionDetailView = await client.devboxes.writeFileContents('id', {
    contents: 'contents',
    file_path: 'file_path',
  });

  console.log(devboxExecutionDetailView.devbox_id);
}

main();
{
  "devbox_id": "<string>",
  "stdout": "<string>",
  "stderr": "<string>",
  "exit_status": 123,
  "shell_name": "<string>"
}

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

Response

200
application/json
OK

The response is of type object.