Create or update snapshot schedule for an instance
Scheduled runs automatically choose snapshot behavior from current instance state:
- Running or Standby source: create a Standby snapshot.
- Stopped source: create a Stopped snapshot. For running instances, this includes a brief pause/resume cycle during each capture. The minimum supported interval is 1m, but larger intervals are recommended for heavier or latency-sensitive workloads. Updating only retention, metadata, or name_prefix preserves the next scheduled run; changing interval establishes a new cadence.
put/instances/{id}/snapshot-schedule
Path parameters
idstring required
Source instance ID or name
Request body
Example request
{
"interval": "24h",
"name_prefix": "nightly",
"metadata": {
"team": "backend",
"env": "staging"
},
"retention": {
"max_count": 7,
"max_age": "168h"
}
}Response
Snapshot schedule updated
Example response
{
"instance_id": "qilviffnqzck2jrim1x6s2b1",
"interval": "24h",
"name_prefix": "nightly",
"metadata": {
"team": "backend",
"env": "staging"
},
"retention": {
"max_count": 7,
"max_age": "168h"
},
"next_run_at": "2026-03-10T02:00:00Z",
"last_run_at": "2026-03-09T02:00:00Z",
"last_snapshot_id": "q7z1w7l2af4l8y7q1h7g2m3s",
"last_error": "invalid state transition: stopped snapshot requires source in Stopped, got Running",
"created_at": "2026-03-09T01:00:00Z",
"updated_at": "2026-03-09T01:30:00Z"
}