import Runloop from '@runloop/api-client';
const client = new Runloop({
bearerToken: process.env['RUNLOOP_API_KEY'], // This is the default and can be omitted
});
const response = await client.devboxes.uploadFile('id', { path: 'path' });
console.log(response);{}Upload file contents of any type (binary, text, etc) to a Devbox. Note this API is suitable for large files (larger than 100MB) and efficiently uploads files via multipart form data.
import Runloop from '@runloop/api-client';
const client = new Runloop({
bearerToken: process.env['RUNLOOP_API_KEY'], // This is the default and can be omitted
});
const response = await client.devboxes.uploadFile('id', { path: 'path' });
console.log(response);{}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The Devbox ID.
OK
The response is of type object.
Was this page helpful?