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

const client = new Runloop({
  bearerToken: 'My Bearer Token',
});

const response = await client.devboxes.uploadFile('id', { path: 'path' });

console.log(response);
{}

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

multipart/form-data
path
string
required

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

file
file

Response

OK

The response is of type object.