Save a checkpoint of a sandbox as the next step of its timeline
curl --request POST \
--url https://api.styne.ai/sandboxes/{id}/checkpoints \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"label": "<string>",
"keepLast": 123
}
'import requests
url = "https://api.styne.ai/sandboxes/{id}/checkpoints"
payload = {
"label": "<string>",
"keepLast": 123
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({label: '<string>', keepLast: 123})
};
fetch('https://api.styne.ai/sandboxes/{id}/checkpoints', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"code": 123,
"message": "<string>",
"error_code": "<string>",
"origin": "<string>",
"request_id": "<string>"
}Save a checkpoint of a sandbox as the next step of its timeline
POST
/
sandboxes
/
{id}
/
checkpoints
Save a checkpoint of a sandbox as the next step of its timeline
curl --request POST \
--url https://api.styne.ai/sandboxes/{id}/checkpoints \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"label": "<string>",
"keepLast": 123
}
'import requests
url = "https://api.styne.ai/sandboxes/{id}/checkpoints"
payload = {
"label": "<string>",
"keepLast": 123
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({label: '<string>', keepLast: 123})
};
fetch('https://api.styne.ai/sandboxes/{id}/checkpoints', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"code": 123,
"message": "<string>",
"error_code": "<string>",
"origin": "<string>",
"request_id": "<string>"
}Authorizations
Body
application/json
Response
Success. The answer is described on https://docs.styne.ai/checkpoints.