E2B

设置超时

把沙箱的到期时间重设为从现在起的若干秒。

先调用「创建沙箱」,用返回的 sandboxID 替换 sbx_123。

POST /e2b/sandboxes/{sandboxID}/timeout● 支持

E2B 官方文档 ↗

请求参数

  • sandboxIDstring必填

    path:

  • timeoutinteger必填

    Timeout in seconds from the current time after which the sandbox should expire

返回

204

错误按 E2B 格式返回,参见 错误码

响应

HTTP 204

Successfully set the sandbox timeout

未声明响应体。