Docs Home Return to Homepage
Get Started Login

List Snapshot Schedules

Last updated Changelog

On this page
http
GET /crates/{handle}/snapshot-schedules

The crate’s schedules: whole-crate ones first, then each folder’s (target is its name). Times are UTC. weekday (0 is Sunday) is set for weekly schedules only, month_day for monthly ones. Each keeps its last keep snapshots and deletes older ones.

Response

json
[
  {
    "target": "crate",
    "frequency": "daily",
    "time": "03:00",
    "weekday": null,
    "month_day": null,
    "keep": 7,
    "description": "Daily at 03:00 UTC"
  },
  {
    "target": "backups",
    "frequency": "monthly",
    "time": "02:00",
    "weekday": null,
    "month_day": 1,
    "keep": 3,
    "description": "Monthly on the 1st at 02:00 UTC"
  }
]

Errors

Besides the errors any endpoint can return:

Status Code When
403 scope_denied This API key does not have Crates read access for this crate.
404 not_found Crate not found.

Snagged on something?

Our sysadmins answer tickets around the clock.