Renew Path Lease
curl --request POST \
--url https://api.zerodrive.dev/v1/leases/{lease_id}/renew \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"holder_id": "<string>",
"ttl_seconds": 120
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({holder_id: '<string>', ttl_seconds: 120})
};
fetch('https://api.zerodrive.dev/v1/leases/{lease_id}/renew', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.zerodrive.dev/v1/leases/{lease_id}/renew"
payload = {
"holder_id": "<string>",
"ttl_seconds": 120
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}Renew Path Lease
Extend the TTL of an active advisory lease held by the caller.
POST
https://api.zerodrive.dev
/
v1
/
leases
/
{lease_id}
/
renew
Renew Path Lease
curl --request POST \
--url https://api.zerodrive.dev/v1/leases/{lease_id}/renew \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"holder_id": "<string>",
"ttl_seconds": 120
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({holder_id: '<string>', ttl_seconds: 120})
};
fetch('https://api.zerodrive.dev/v1/leases/{lease_id}/renew', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.zerodrive.dev/v1/leases/{lease_id}/renew"
payload = {
"holder_id": "<string>",
"ttl_seconds": 120
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}
