Execute Box command
Runs the command synchronously by default (timeout configurable via timeoutSeconds, 600s cap). With detached: true the command starts in the background and a process id is returned immediately; poll /boxes/{boxId}/commands/{processId} for status and logs. Returns 400 invalid_timeout when timeoutSeconds is not an integer in 1-600. Returns 409 box_starting (retryable) while the Box is still provisioning — wait until the Box state is ready before running commands. Command execution is never retried automatically: a 502 box_direct_failed means the command may already be running on the Box.
Authorizations
Box bearer token in the form box_.... Service API keys authenticate Box operations.
Path Parameters
Public Box id returned by create/list/get box calls.
^bx_[23456789abcdefghjkmnpqrstuvwxyz]{8}$Body
Relative working directory inside the Box work directory.
Command timeout in seconds. Values outside 1-600 are rejected with a 400 invalid_timeout error.
1 <= x <= 600Start the command in the background and return a process id immediately instead of waiting for it to finish. Output goes to a log file on the Box; poll the status endpoint for it.
Response
Command result (synchronous) or process start confirmation (detached).
- Option 1
- Option 2
true
Stable success envelope discriminator added by v1.
"command.finished"