Extend Sandbox TTL
curl --request POST \
--url https://api.zerodrive.dev/v1/sandboxes/{sandbox_id}/extend \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"ttl_seconds": 3600
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({ttl_seconds: 3600})
};
fetch('https://api.zerodrive.dev/v1/sandboxes/{sandbox_id}/extend', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.zerodrive.dev/v1/sandboxes/{sandbox_id}/extend"
payload = { "ttl_seconds": 3600 }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}Extend Sandbox TTL
Extend the expiration TTL of an active sandbox token.
POST
https://api.zerodrive.dev
/
v1
/
sandboxes
/
{sandbox_id}
/
extend
Extend Sandbox TTL
curl --request POST \
--url https://api.zerodrive.dev/v1/sandboxes/{sandbox_id}/extend \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"ttl_seconds": 3600
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({ttl_seconds: 3600})
};
fetch('https://api.zerodrive.dev/v1/sandboxes/{sandbox_id}/extend', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.zerodrive.dev/v1/sandboxes/{sandbox_id}/extend"
payload = { "ttl_seconds": 3600 }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}
