Refresh the sandbox extending its time to live
cURL
curl --request POST \ --url https://api.e2b.app/sandboxes/{sandboxID}/refreshes \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <api-key>' \ --data ' { "duration": 1800 } '
{ "code": 123, "message": "<string>" }
Duration for which the sandbox should be kept alive in seconds
0 <= x <= 3600
Successfully refreshed the sandbox
Was this page helpful?