Skip to main content
POST
/
sandboxes
/
{sandboxID}
/
refreshes
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>"
}

Authorizations

X-API-Key
string
header
required

Path Parameters

sandboxID
string
required

Body

application/json
duration
integer

Duration for which the sandbox should be kept alive in seconds

Required range: 0 <= x <= 3600

Response

Successfully refreshed the sandbox