Sandbox

Set sandbox timeout

Reset the sandbox's expiry to N seconds from now.

Call Create sandbox first and replace sbx_123 with its returned sandboxID.

POST /sandbox/v1/sandboxes/{sandboxID}/timeout● Supported

Official E2B docs ↗

Request parameters

  • sandboxIDstring必填

    path: Sandbox ID.

  • timeoutinteger必填

    New lifetime in seconds from now, replacing the current expiry rather than adding to it. May shorten the remaining lifetime.

Returns

204

Errors follow the E2B format — see error codes

Response

HTTP 204

Successfully set the sandbox timeout

No response body is declared.