Create a snapshot schedule

Create a snapshot schedule for a server. Scheduled snapshots count toward the same quota as the ones you create yourself, and have the snapshot_type scheduled.

POST https://{availability_zone}.betterstackcloud.com/v1/scheduled-snapshots
Authorization string required

Bearer $TOKEN

Content-Type string

application/json

server_id string required

The ID of the server the schedule creates snapshots of. Can't be changed after the schedule is created.

frequency string required

How often we create a snapshot. A monthly schedule runs on the same day each month. Possible values: hourly, daily, weekly, monthly.

201 Created
{
  "id": "example",
  "server_id": "123456789",
  "frequency": "hourly",
  "last_run_at": "2026-07-01T12:00:00.000Z",
  "created_at": "2026-07-01T12:00:00.000Z",
  "updated_at": "2026-07-01T12:00:00.000Z"
}

Returns the newly created scheduled snapshot.

id string

The schedule's ID, a UUID.

server_id string

The ID of the server the schedule creates snapshots of.

frequency string

How often we create a snapshot. A monthly schedule runs on the same day each month. Possible values: hourly, daily, weekly, monthly.

last_run_at datetime or null

When the schedule last created a snapshot, or null until the schedule first runs. In ISO 8601 format, such as 2026-07-01T12:00:00Z.

created_at datetime

When the schedule was created. In ISO 8601 format, such as 2026-07-01T12:00:00Z.

updated_at datetime

When the schedule was last updated. In ISO 8601 format, such as 2026-07-01T12:00:00Z.