Skip to main content
POST
Exec In Org Sandbox

Authorizations

Authorization
string
header
required

A floo_ API key.

Headers

X-Floo-Org-Id
string<uuid>

Organization to act in; defaults to the one joined most recently.

Path Parameters

sandbox_id
string
required

Body

application/json

A command to run in a sandbox.

command
string[]
required

The program and its arguments, as ["pytest", "-q"].

Minimum array length: 1
workdir
string | null

The directory it runs in.

env
Env · object

Variables it runs with.

timeout
integer
default:300

Seconds it may run before it is ended. Default 5 minutes, at most 25.

Required range: 1 <= x <= 1500

Response

Successful Response

How a command ended, and what it printed.

exit_code
integer
required
stdout
string
required
stderr
string
required
timed_out
boolean
required
truncated
boolean
required