Update a MySQL snapshot schedule

Change how often a snapshot schedule creates snapshots.

PATCH https://{availability_zone}.betterstackcloud.com/v1/mysql/{mysql_id}/scheduled-snapshots/{id}
mysql_id string required

The ID of the MySQL instance.

id string required

The ID of the MySQL scheduled snapshot to update.

Authorization string required

Bearer $TOKEN

Content-Type string

application/json

frequency string

How often we create a snapshot. A month is a calendar month. Possible values: hourly, daily, weekly, monthly.

200 OK
{
  "id": "example",
  "mysql_id": "123456789",
  "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 updated MySQL scheduled snapshot.

id string

The schedule's ID, a UUID.

mysql_id string

The ID of the MySQL instance the schedule belongs to.

server_id string

The ID of the server that runs the instance's current primary, which changes when the instance fails over.

frequency string

How often we create a snapshot. A month is a calendar month. Possible values: hourly, daily, weekly, monthly.

last_run_at datetime or null

When the schedule last created a snapshot, or null before the first one. 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.