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● SupportedRequest 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.