Revoke every preview link
curl --request POST \
--url https://api.compute.anonalabs.com/v1/sandboxes/{sandboxID}/preview-links:revoke-all \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.compute.anonalabs.com/v1/sandboxes/{sandboxID}/preview-links:revoke-all"
headers = {"X-API-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.compute.anonalabs.com/v1/sandboxes/{sandboxID}/preview-links:revoke-all', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"code": 123,
"message": "<string>",
"error_code": "<string>"
}{
"code": 123,
"message": "<string>",
"error_code": "<string>"
}Sandbox access
Revoke every preview link
Ends every preview link and every live-view token of the sandbox.
POST
/
v1
/
sandboxes
/
{sandboxID}
/
preview-links:revoke-all
Revoke every preview link
curl --request POST \
--url https://api.compute.anonalabs.com/v1/sandboxes/{sandboxID}/preview-links:revoke-all \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.compute.anonalabs.com/v1/sandboxes/{sandboxID}/preview-links:revoke-all"
headers = {"X-API-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.compute.anonalabs.com/v1/sandboxes/{sandboxID}/preview-links:revoke-all', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"code": 123,
"message": "<string>",
"error_code": "<string>"
}{
"code": 123,
"message": "<string>",
"error_code": "<string>"
}