Skip to main content
POST
/
sandboxes
/
{sandboxID}
/
timeout
cURL
curl --request POST \
  --url https://api.e2b.app/sandboxes/{sandboxID}/timeout \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '{
  "timeout": 1
}'
{
  "code": 123,
  "message": "<string>"
}

Authorizations

X-API-Key
string
header
required

Path Parameters

sandboxID
string
required

Body

application/json
timeout
integer<int32>
required

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

Required range: x >= 0

Response

Successfully set the sandbox timeout