Skip to main content
PUT

Authorizations

X-API-Key
string
header
required

API key for authentication. Each key is bound to a specific account.

Path Parameters

database_id
string
required

Database ID (UUID) or short id (the database_id field, e.g. a1b2c3d4)

Body

application/json
day
integer

Day of the window, UTC. 0 = Sunday, 6 = Saturday. Required unless auto is true.

Required range: 0 <= x <= 6
Example:

2

hour
integer

Start hour of the window, UTC. Required unless auto is true.

Required range: 0 <= x <= 23
Example:

2

auto
boolean
default:false

Set to true to let Raff pick the window. day and hour are then ignored.

Response

The window was set. The response is the database's planned updates.

success
boolean
maintenance
object

A database's planned updates to a newer build of its version, its weekly maintenance window, and the updates and upgrades that ran. When a version reaches the end of its support, the planned update moves the database to the next version instead; moves_to says so.

Last modified on December 5, 2026