Hanzo
OpenapiSandbox

Stop what a sandbox is running, and keep the sandbox

Interrupts whatever the caller's sandbox is running and answers how many commands it ended.

POST /v1/sandbox/stop

Addresshttps://api.hanzo.ai/v1/sandbox/stop
MethodPOST
Operationstop_run
AuthAuthorization: Bearer $HANZO_API_KEY

Interrupts whatever the caller's sandbox is running and answers how many commands it ended. The sandbox stays leased — stop ends the WORK, end ends the RESOURCE — so whoever stopped a run can still read what it left behind.

Request

1 field, body application/json (required).

FieldInTypeRequiredDescription
idbodystringID is the sandbox to interrupt, from an earlier lease.

Response

StatusBodyMeaning
200Stoppedok

200 body — 1 field.

FieldInTypeAlwaysDescription
stoppedbodyintegerStopped counts the commands that were still running and were interrupted.

Failure carries the platform error shape — see Errors.

Examples

hanzo sandboxes stop

Sandbox API · All Hanzo APIs · Interactive reference

How is this guide?

On this page