set_backup_schedule
Put a sandbox on an automatic backup schedule, or take it off one. Give period (a duration like 24h or 30m — whole minutes under an hour, or whole hours up to 24h, and never under 15m) or cron (a 5-field expression), not both; "off" as either removes the schedule. retention (like 7d) is how long each backup is kept, and needs a period. Every run costs what create_backup costs, so do not schedule one on a sandbox that will not be around.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sandbox_id": "<sandbox_id>"
},
"name": "set_backup_schedule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cron | No | 5-field cron expression instead of period | |
| period | No | duration between backups, e.g. 24h; or "off" to remove the schedule | |
| retention | No | how long backups are kept, e.g. 7d (needs a period) | |
| sandbox_id | Yes | sandbox id, e.g. sb_ab12cd |