Actions24
- Code Interpreter Actions
- Command Actions
- File Actions
- Sandbox Actions
- Snapshot Actions
Sandbox → Set Timeout
AI-generatedSummary
Updates the auto-kill timeout of an existing Declaw sandbox by sending a PATCH request with the new timeout in seconds.
Inputs
- Sandbox ID (required) — ID of the sandbox to update (e.g. sbx-a1b2c3d4). It is inserted into the request path as-is.
- Timeout (Seconds) (required) — New auto-kill timeout in seconds. Defaults to 300. 0 means no timeout. Sent as
timeoutin the request body.
Output shape
One output item per input item, containing the JSON response from the Declaw API for PATCH /sandboxes/{sandboxId}/timeout.
The node does not reshape the response, so the exact fields depend on the Declaw API. If 'Continue on Fail' is enabled, a failed item returns {error: message} instead of stopping the workflow. The node runs once per input item.
Examples
Example 1: Extend a long-running sandbox to 1 hour before running more commands.
Resource: Sandbox; Operation: Set Timeout; Sandbox ID: {{$json.sandbox_id}}; Timeout (Seconds): 3600
Example 2: Disable auto-kill for a sandbox that must stay alive.
Resource: Sandbox; Operation: Set Timeout; Sandbox ID: sbx-a1b2c3d4; Timeout (Seconds): 0