Set Timeout
Sandbox API
Set Timeout
Update the auto-kill timeout for a running sandbox.
PATCH
Set Timeout
Updates the
timeout field stored on the sandbox. Pass 0 to disable auto-kill.
This endpoint updates the persisted value only — it does not restart any existing
in-flight countdown timer that was set at creation time.
Use this endpoint to extend a sandbox’s lifetime before it expires, or to reduce
the timeout if you want to reclaim resources sooner.
Path Parameters
The sandbox identifier. Format:
sbx-<8 chars>.Request Body
New timeout value in seconds. Pass
0 to disable auto-kill.Example: 600Response
Always
true when the update succeeds.Example
Response
Error Responses
| Status | Cause |
|---|---|
400 | Invalid request body |
401 | Missing or invalid API key |
404 | Sandbox not found |