Set the database’s weekly one-hour maintenance window, in UTC, or let Raff pick it.
Your own window: send day (0 = Sunday to 6 = Saturday) and hour (0 to 23), the start of the hour in UTC.
Let Raff pick: send {"auto": true}. Raff picks the quietest hour of the database’s week from its traffic, or Sunday 07:00 UTC until it has a week of traffic.
A planned update moves to the first time in the new window at or after its planned time. It never moves earlier, does not use a postpone, and stays where it is when the new window falls after its last_date. An update you started with Run the planned update now does not move.
Free databases are updated in a window Raff picks (window_raff_only is true): setting it returns 400.
Errors
400: day or hour is missing or out of range, or the database is on the free plan.
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.
Show child attributes
Last modified on December 5, 2026
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Raff","colors":{"primary":"#E43D12","light":"#f15e3a","dark":"#b32f0d"},"logo":{"light":"https://mintcdn.com/rafftechnologiesllc/-fGNhyEGXJeJV5ed/logo/light.svg?fit=max\u0026auto=format\u0026n=-fGNhyEGXJeJV5ed\u0026q=85\u0026s=0e81ca868d348265df3068ed9c0d9769","dark":"https://mintcdn.com/rafftechnologiesllc/-fGNhyEGXJeJV5ed/logo/dark.svg?fit=max\u0026auto=format\u0026n=-fGNhyEGXJeJV5ed\u0026q=85\u0026s=449e6e79f98b68b6f313c524bc66dc76"},"favicon":"https://mintcdn.com/rafftechnologiesllc/W-SRe3pyhI_9M9ss/favicon.ico?fit=max\u0026auto=format\u0026n=W-SRe3pyhI_9M9ss\u0026q=85\u0026s=108c3e7250ef83b8d547d35e00467418","api":{"playground":{}},"navbar":{"links":[{"href":"mailto:support@rafftechnologies.com","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.rafftechnologies.com"}},"footer":{"socials":{"x":"https://x.com/rafftechnologies","instagram":"https://instagram.com/rafftechnologies","linkedin":"https://linkedin.com/company/rafftechnologies","reddit":"https://www.reddit.com/user/rafftechnologies","github":"https://github.com/rafftechnologies"},"links":[{"header":"Company","items":[{"label":"About","href":"https://rafftechnologies.com/about-us"},{"label":"Blog","href":"https://rafftechnologies.com/blog"},{"label":"Pricing","href":"https://rafftechnologies.com/pricing"},{"label":"Status","href":"https://rafftechnologies.com/status"}]},{"header":"Docs","items":[{"label":"Docs Home","href":"/introduction"},{"label":"API Reference","href":"/api-reference/endpoints"},{"label":"CLI","href":"/reference/cli/introduction"},{"label":"Terraform Provider","href":"https://registry.terraform.io/providers/RaffTechnologies/raff/latest"},{"label":"Quickstart","href":"/quickstart"},{"label":"Products","href":"/products"}]},{"header":"Application","items":[{"label":"Dashboard","href":"https://app.rafftechnologies.com"},{"label":"Sign in","href":"https://app.rafftechnologies.com/auth/sign-in"},{"label":"Sign up","href":"https://app.rafftechnologies.com/auth/sign-up"},{"label":"Marketplace","href":"https://marketplace.rafftechnologies.com"}]},{"header":"Support","items":[{"label":"Tickets","href":"https://help.rafftechnologies.com"},{"label":"Contact","href":"mailto:support@rafftechnologies.com"},{"label":"FAQ","href":"https://rafftechnologies.com/faq"},{"label":"Terms of Service","href":"https://app.rafftechnologies.com/legal"},{"label":"Privacy Policy","href":"https://app.rafftechnologies.com/legal"},{"label":"SLA","href":"https://app.rafftechnologies.com/legal"}]}]},"seo":{"metatags":{"og:site_name":"Raff","og:image":"https://rafftechnologies.com/images/og.jpg","twitter:card":"summary_large_image","twitter:site":"@rafftechnologies"},"indexing":"all"},"metadata":{"timestamp":true},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"Changelog","icon":"clock-rotate-left","href":"/api-reference/changelog"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"rafftechnologiesllc","hasAudioNarration":false,"actualSubdomain":"rafftechnologiesllc","customDomains":["docs.rafftechnologies.com"],"gitSource":{"type":"github","owner":"rafftechnologies","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":"","_id":"6b10d6b19ffae5051c40d624"},"feedback":{"thumbs":false},"entitlements":{},"buildId":"6b150a8bbabd8cf38628f237","clientVersion":"0.0.4458","searchFilterCounts":[{"language":"default","tag":"Reference","count":294},{"language":"default","tag":"REST API","count":241},{"language":"default","tag":"Products","count":240},{"language":"default","tag":"Build","count":109},{"language":"default","tag":"Quickstart \u0026 guides","count":97},{"language":"default","tag":"Raff Apps","count":72},{"language":"default","tag":"Virtual Machines","count":70},{"language":"default","tag":"Managed Databases","count":68},{"language":"default","tag":"Concepts","count":65},{"language":"default","tag":"Kubernetes","count":52}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/databases/set-database-maintenance-window","slug":"/api-reference/databases/set-database-maintenance-window","pageMetadata":{"title":"Set the maintenance window","openapi":"PUT /api/v1/databases/{database_id}/maintenance/window","description":"Set the database's weekly one-hour maintenance window, in UTC, or let Raff pick it.\n\n- **Your own window**: send `day` (0 = Sunday to 6 = Saturday) and `hour` (0 to 23), the start of the hour in UTC.\n- **Let Raff pick**: send `{\"auto\": true}`. Raff picks the quietest hour of the database's week from its traffic, or Sunday 07:00 UTC until it has a week of traffic.\n\nA planned update moves to the first time in the new window at or after its planned time. It never moves earlier, does not use a postpone, and stays where it is when the new window falls after its `last_date`. An update you started with [Run the planned update now](/api-reference/databases/update-database-maintenance-now) does not move.\n\nFree databases are updated in a window Raff picks (`window_raff_only` is `true`): setting it returns `400`.\n\n## Errors\n\n- `400`: `day` or `hour` is missing or out of range, or the database is on the free plan.\n","href":"/api-reference/databases/set-database-maintenance-window"},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n a: \"a\",\n code: \"code\",\n h2: \"h2\",\n li: \"li\",\n p: \"p\",\n strong: \"strong\",\n ul: \"ul\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsx(_components.p, {\n children: \"Set the database’s weekly one-hour maintenance window, in UTC, or let Raff pick it.\"\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.strong, {\n children: \"Your own window\"\n }), \": send \", _jsx(_components.code, {\n children: \"day\"\n }), \" (0 = Sunday to 6 = Saturday) and \", _jsx(_components.code, {\n children: \"hour\"\n }), \" (0 to 23), the start of the hour in UTC.\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.strong, {\n children: \"Let Raff pick\"\n }), \": send \", _jsx(_components.code, {\n children: \"{\\\"auto\\\": true}\"\n }), \". Raff picks the quietest hour of the database’s week from its traffic, or Sunday 07:00 UTC until it has a week of traffic.\"]\n }), \"\\n\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"A planned update moves to the first time in the new window at or after its planned time. It never moves earlier, does not use a postpone, and stays where it is when the new window falls after its \", _jsx(_components.code, {\n children: \"last_date\"\n }), \". An update you started with \", _jsx(_components.a, {\n href: \"/api-reference/databases/update-database-maintenance-now\",\n children: \"Run the planned update now\"\n }), \" does not move.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Free databases are updated in a window Raff picks (\", _jsx(_components.code, {\n children: \"window_raff_only\"\n }), \" is \", _jsx(_components.code, {\n children: \"true\"\n }), \"): setting it returns \", _jsx(_components.code, {\n children: \"400\"\n }), \".\"]\n }), \"\\n\", _jsx(_components.h2, {\n children: \"Errors\"\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.code, {\n children: \"400\"\n }), \": \", _jsx(_components.code, {\n children: \"day\"\n }), \" or \", _jsx(_components.code, {\n children: \"hour\"\n }), \" is missing or out of range, or the database is on the free plan.\"]\n }), \"\\n\"]\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Set the maintenance window","openapi":"PUT /api/v1/databases/{database_id}/maintenance/window","description":"Set the database's weekly one-hour maintenance window, in UTC, or let Raff pick it.\n\n- **Your own window**: send `day` (0 = Sunday to 6 = Saturday) and `hour` (0 to 23), the start of the hour in UTC.\n- **Let Raff pick**: send `{\"auto\": true}`. Raff picks the quietest hour of the database's week from its traffic, or Sunday 07:00 UTC until it has a week of traffic.\n\nA planned update moves to the first time in the new window at or after its planned time. It never moves earlier, does not use a postpone, and stays where it is when the new window falls after its `last_date`. An update you started with [Run the planned update now](/api-reference/databases/update-database-maintenance-now) does not move.\n\nFree databases are updated in a window Raff picks (`window_raff_only` is `true`): setting it returns `400`.\n\n## Errors\n\n- `400`: `day` or `hour` is missing or out of range, or the database is on the free plan.\n","href":"/api-reference/databases/set-database-maintenance-window"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["Managed Databases"],"summary":"Set the maintenance window","description":"Set the database's weekly one-hour maintenance window, in UTC, or let Raff pick it.\n\n- **Your own window**: send `day` (0 = Sunday to 6 = Saturday) and `hour` (0 to 23), the start of the hour in UTC.\n- **Let Raff pick**: send `{\"auto\": true}`. Raff picks the quietest hour of the database's week from its traffic, or Sunday 07:00 UTC until it has a week of traffic.\n\nA planned update moves to the first time in the new window at or after its planned time. It never moves earlier, does not use a postpone, and stays where it is when the new window falls after its `last_date`. An update you started with [Run the planned update now](/api-reference/databases/update-database-maintenance-now) does not move.\n\nFree databases are updated in a window Raff picks (`window_raff_only` is `true`): setting it returns `400`.\n\n## Errors\n\n- `400`: `day` or `hour` is missing or out of range, or the database is on the free plan.\n","operationId":"setDatabaseMaintenanceWindow","parameters":["18774f45-8b1f-4968-a703-80f99cc4edbd"],"requestBody":"d0429bdd-0e48-42e9-b416-27a38dc29053","responses":{"200":"74a57bca-c522-471a-af4f-9069ea07dbb2","400":"dfb3c3d5-7337-4830-93cb-a6580049aeb9","401":"60b46728-a248-4343-ad11-08696c6129ad","404":"5dc5db56-73b9-4382-afc6-a2b4fde23061"},"method":"put","type":"path","servers":["f4a17687-1367-4b1d-8fea-5caf255f6d40"],"security":["66961b4a-b890-4ecb-a906-c035d8996ab1"],"path":"/api/v1/databases/{database_id}/maintenance/window","baseUrlOptions":["https://api.rafftechnologies.com"],"title":"Set the maintenance window","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"18774f45-8b1f-4968-a703-80f99cc4edbd":{"name":"database_id","in":"path","required":true,"description":"Database ID (UUID) or short id (the `database_id` field, e.g. `a1b2c3d4`)","schema":{"type":"string","isRequired":true,"description":"Database ID (UUID) or short id (the `database_id` field, e.g. `a1b2c3d4`)","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"day":{"type":"integer","minimum":0,"maximum":6,"description":"Day of the window, UTC. 0 = Sunday, 6 = Saturday. Required unless `auto` is `true`.","example":2,"uniqueKey":"day","typeLabel":"integer"},"hour":{"type":"integer","minimum":0,"maximum":23,"description":"Start hour of the window, UTC. Required unless `auto` is `true`.","example":2,"uniqueKey":"hour","typeLabel":"integer"},"auto":{"type":"boolean","default":false,"description":"Set to `true` to let Raff pick the window. `day` and `hour` are then ignored.","uniqueKey":"auto","typeLabel":"boolean"}},"uniqueKey":"","typeLabel":"object"},"examples":{"own":{"title":"own","summary":"Tuesdays, 02:00 to 03:00 UTC","value":{"day":2,"hour":2}},"auto":{"title":"auto","summary":"Let Raff pick","value":{"auto":true}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"74a57bca-c522-471a-af4f-9069ea07dbb2":{"description":"The window was set. The response is the database's planned updates.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","uniqueKey":"success","typeLabel":"boolean"},"maintenance":{"type":"object","description":"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.","properties":{"window_day":{"type":"integer","minimum":0,"maximum":6,"description":"Day of the weekly window, UTC. 0 = Sunday, 6 = Saturday.","example":0,"uniqueKey":"maintenance.window_day","typeLabel":"integer"},"window_hour":{"type":"integer","minimum":0,"maximum":23,"description":"Start hour of the window, UTC. The window is one hour.","example":7,"uniqueKey":"maintenance.window_hour","typeLabel":"integer"},"window_auto":{"type":"boolean","description":"Raff picks the window from the database's traffic. `false` when you set it.","uniqueKey":"maintenance.window_auto","typeLabel":"boolean"},"window_raff_only":{"type":"boolean","description":"Free plan. Raff picks the window and it cannot be changed.","uniqueKey":"maintenance.window_raff_only","typeLabel":"boolean"},"upcoming":{"oneOf":[{"type":"object","description":"The update that is planned (`scheduled`) or `running`, or null when none is planned.","properties":{"id":{"type":"integer","format":"int64","description":"The update's ID","example":412,"uniqueKey":"maintenance.upcoming.oneOf.0.id","typeLabel":"integer\u003cint64>"},"from_version":{"type":"string","description":"Version the database runs before the update","example":"18.7","uniqueKey":"maintenance.upcoming.oneOf.0.from_version","typeLabel":"string"},"to_version":{"type":"string","description":"Version after the update. The same as `from_version` when the update brings a newer build of the same version.","example":"18.8","uniqueKey":"maintenance.upcoming.oneOf.0.to_version","typeLabel":"string"},"what":{"type":"string","description":"What the update brings, in plain words, such as `PostgreSQL 18.8` or `A newer build of PostgreSQL 18.7 (security and operating-system fixes)`.","example":"PostgreSQL 18.8","uniqueKey":"maintenance.upcoming.oneOf.0.what","typeLabel":"string"},"moves_to":{"type":"string","description":"The version the update moves the database to, such as `8.4`, when the database's version has reached the end of its support (MySQL 8.0 to 8.4). Empty for an update inside the version, which is every other update.","example":"","uniqueKey":"maintenance.upcoming.oneOf.0.moves_to","typeLabel":"string"},"state":{"type":"string","description":"One of `scheduled`, `running`, `done`, `failed`.\n\n- `scheduled`: planned for `scheduled_for`.\n- `running`: being applied. `step_note` says the step.\n- `done`: the database runs the new build.\n- `failed`: the update did not complete and the database went back to the build it ran before. `message` says what happened. After a failed move to another version (`moves_to`), the database can be back as it was when the move started; `message` then says the time.\n","uniqueKey":"maintenance.upcoming.oneOf.0.state","typeLabel":"string"},"step_note":{"type":"string","description":"While `running`, the step in plain words, such as `Taking a backup first. Nothing has changed yet.` Empty otherwise.","uniqueKey":"maintenance.upcoming.oneOf.0.step_note","typeLabel":"string"},"scheduled_for":{"type":"string","format":"date-time","description":"When the update starts, RFC 3339. It starts within the hour that begins then.","uniqueKey":"maintenance.upcoming.oneOf.0.scheduled_for","typeLabel":"string\u003cdate-time>"},"first_date":{"type":"string","format":"date-time","description":"The date first announced, RFC 3339","uniqueKey":"maintenance.upcoming.oneOf.0.first_date","typeLabel":"string\u003cdate-time>"},"last_date":{"type":"string","format":"date-time","description":"The latest time the update can be postponed to, RFC 3339","uniqueKey":"maintenance.upcoming.oneOf.0.last_date","typeLabel":"string\u003cdate-time>"},"postponed_count":{"type":"integer","description":"How many times it was postponed","uniqueKey":"maintenance.upcoming.oneOf.0.postponed_count","typeLabel":"integer"},"postpones_left":{"type":"integer","description":"How many more times it can be postponed (3 in all). 0 once it runs.","uniqueKey":"maintenance.upcoming.oneOf.0.postpones_left","typeLabel":"integer"},"security":{"type":"boolean","description":"A critical security fix. It is announced 24 hours ahead, runs at the window's hour on any day, and each postpone moves it a day.","uniqueKey":"maintenance.upcoming.oneOf.0.security","typeLabel":"boolean"},"expected_seconds":{"type":"integer","description":"How long the database is expected to refuse connections during the update, in seconds. 0 = no interruption expected.","example":30,"uniqueKey":"maintenance.upcoming.oneOf.0.expected_seconds","typeLabel":"integer"},"measured_ms":{"oneOf":[{"type":"integer","format":"int64","description":"How long the database refused connections during the update, in milliseconds. Null until measured.","uniqueKey":"maintenance.upcoming.oneOf.0.measured_ms.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","format":"int64","description":"How long the database refused connections during the update, in milliseconds. Null until measured.","uniqueKey":"maintenance.upcoming.oneOf.0.measured_ms.oneOf.1","typeLabel":"null"}],"uniqueKey":"maintenance.upcoming.oneOf.0.measured_ms","typeLabel":"integer\u003cint64> | null"},"message":{"type":"string","description":"What happened, in plain words, when the update did not go through. Can also describe an update that changed nothing the database runs. Often empty.","uniqueKey":"maintenance.upcoming.oneOf.0.message","typeLabel":"string"},"started_by":{"type":"string","description":"Who started the update. One of `window`, `customer`, `resume`, `support`.\n\n- `window`: Raff, in the maintenance window.\n- `customer`: you, with [Run the planned update now](/api-reference/databases/update-database-maintenance-now).\n- `resume`: taken when you resumed a paused database.\n- `support`: Raff support.\n","example":"window","uniqueKey":"maintenance.upcoming.oneOf.0.started_by","typeLabel":"string"},"started_at":{"type":"string","description":"When the update started, RFC 3339. Empty until it starts.","uniqueKey":"maintenance.upcoming.oneOf.0.started_at","typeLabel":"string"},"finished_at":{"type":"string","description":"When the update ended, RFC 3339. Empty until it ends.","uniqueKey":"maintenance.upcoming.oneOf.0.finished_at","typeLabel":"string"}},"uniqueKey":"maintenance.upcoming.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"maintenance.upcoming.oneOf.1","typeLabel":"null"}],"uniqueKey":"maintenance.upcoming","typeLabel":"object | null"},"upcoming_note":{"type":"string","description":"What the planned update brings, in plain words. Empty when none is planned.","example":"The latest fixes for PostgreSQL 18.","uniqueKey":"maintenance.upcoming_note","typeLabel":"string"},"history":{"type":"array","description":"The most recent updates that ran, `done` or `failed`, newest first.","items":{"type":"object","description":"One update of a database to a newer build of its version.","properties":{"id":{"type":"integer","format":"int64","description":"The update's ID","example":412,"uniqueKey":"maintenance.history.items.[INDEX].id","typeLabel":"integer\u003cint64>"},"from_version":{"type":"string","description":"Version the database runs before the update","example":"18.7","uniqueKey":"maintenance.history.items.[INDEX].from_version","typeLabel":"string"},"to_version":{"type":"string","description":"Version after the update. The same as `from_version` when the update brings a newer build of the same version.","example":"18.8","uniqueKey":"maintenance.history.items.[INDEX].to_version","typeLabel":"string"},"what":{"type":"string","description":"What the update brings, in plain words, such as `PostgreSQL 18.8` or `A newer build of PostgreSQL 18.7 (security and operating-system fixes)`.","example":"PostgreSQL 18.8","uniqueKey":"maintenance.history.items.[INDEX].what","typeLabel":"string"},"moves_to":{"type":"string","description":"The version the update moves the database to, such as `8.4`, when the database's version has reached the end of its support (MySQL 8.0 to 8.4). Empty for an update inside the version, which is every other update.","example":"","uniqueKey":"maintenance.history.items.[INDEX].moves_to","typeLabel":"string"},"state":{"type":"string","description":"One of `scheduled`, `running`, `done`, `failed`.\n\n- `scheduled`: planned for `scheduled_for`.\n- `running`: being applied. `step_note` says the step.\n- `done`: the database runs the new build.\n- `failed`: the update did not complete and the database went back to the build it ran before. `message` says what happened. After a failed move to another version (`moves_to`), the database can be back as it was when the move started; `message` then says the time.\n","uniqueKey":"maintenance.history.items.[INDEX].state","typeLabel":"string"},"step_note":{"type":"string","description":"While `running`, the step in plain words, such as `Taking a backup first. Nothing has changed yet.` Empty otherwise.","uniqueKey":"maintenance.history.items.[INDEX].step_note","typeLabel":"string"},"scheduled_for":{"type":"string","format":"date-time","description":"When the update starts, RFC 3339. It starts within the hour that begins then.","uniqueKey":"maintenance.history.items.[INDEX].scheduled_for","typeLabel":"string\u003cdate-time>"},"first_date":{"type":"string","format":"date-time","description":"The date first announced, RFC 3339","uniqueKey":"maintenance.history.items.[INDEX].first_date","typeLabel":"string\u003cdate-time>"},"last_date":{"type":"string","format":"date-time","description":"The latest time the update can be postponed to, RFC 3339","uniqueKey":"maintenance.history.items.[INDEX].last_date","typeLabel":"string\u003cdate-time>"},"postponed_count":{"type":"integer","description":"How many times it was postponed","uniqueKey":"maintenance.history.items.[INDEX].postponed_count","typeLabel":"integer"},"postpones_left":{"type":"integer","description":"How many more times it can be postponed (3 in all). 0 once it runs.","uniqueKey":"maintenance.history.items.[INDEX].postpones_left","typeLabel":"integer"},"security":{"type":"boolean","description":"A critical security fix. It is announced 24 hours ahead, runs at the window's hour on any day, and each postpone moves it a day.","uniqueKey":"maintenance.history.items.[INDEX].security","typeLabel":"boolean"},"expected_seconds":{"type":"integer","description":"How long the database is expected to refuse connections during the update, in seconds. 0 = no interruption expected.","example":30,"uniqueKey":"maintenance.history.items.[INDEX].expected_seconds","typeLabel":"integer"},"measured_ms":{"oneOf":[{"type":"integer","format":"int64","description":"How long the database refused connections during the update, in milliseconds. Null until measured.","uniqueKey":"maintenance.history.items.[INDEX].measured_ms.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","format":"int64","description":"How long the database refused connections during the update, in milliseconds. Null until measured.","uniqueKey":"maintenance.history.items.[INDEX].measured_ms.oneOf.1","typeLabel":"null"}],"uniqueKey":"maintenance.history.items.[INDEX].measured_ms","typeLabel":"integer\u003cint64> | null"},"message":{"type":"string","description":"What happened, in plain words, when the update did not go through. Can also describe an update that changed nothing the database runs. Often empty.","uniqueKey":"maintenance.history.items.[INDEX].message","typeLabel":"string"},"started_by":{"type":"string","description":"Who started the update. One of `window`, `customer`, `resume`, `support`.\n\n- `window`: Raff, in the maintenance window.\n- `customer`: you, with [Run the planned update now](/api-reference/databases/update-database-maintenance-now).\n- `resume`: taken when you resumed a paused database.\n- `support`: Raff support.\n","example":"window","uniqueKey":"maintenance.history.items.[INDEX].started_by","typeLabel":"string"},"started_at":{"type":"string","description":"When the update started, RFC 3339. Empty until it starts.","uniqueKey":"maintenance.history.items.[INDEX].started_at","typeLabel":"string"},"finished_at":{"type":"string","description":"When the update ended, RFC 3339. Empty until it ends.","uniqueKey":"maintenance.history.items.[INDEX].finished_at","typeLabel":"string"}},"uniqueKey":"maintenance.history.items.[INDEX]","typeLabel":"object"},"uniqueKey":"maintenance.history","typeLabel":"object[]"},"upgrades":{"type":"array","description":"Upgrades to a newer major version that ended, newest first (PostgreSQL). Empty for other engines.","items":{"type":"object","description":"An upgrade of a database to a newer major version.","properties":{"from_version":{"type":"string","description":"Major version before the upgrade","example":"18","uniqueKey":"maintenance.upgrades.items.[INDEX].from_version","typeLabel":"string"},"to_version":{"type":"string","description":"Major version the upgrade goes to","example":"19","uniqueKey":"maintenance.upgrades.items.[INDEX].to_version","typeLabel":"string"},"state":{"type":"string","enum":["backing_up","upgrading","finishing","analyzing","done","reverting","failed","undone"],"description":"Where the upgrade stands.\n\n- `backing_up`: the backup before the upgrade is running. Nothing has changed yet.\n- `upgrading`: the database is offline and being upgraded.\n- `finishing`: up on the new version; extensions are being updated.\n- `analyzing`: running again; statistics are being refreshed.\n- `done`: the upgrade is complete.\n- `reverting`: the upgrade could not complete and the database is returning to its version.\n- `failed`: back on its version, unchanged. See `message`.\n- `undone`: it had succeeded and was later returned to the older version from a backup.\n","uniqueKey":"maintenance.upgrades.items.[INDEX].state","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"The reason when `state` is `failed`; empty otherwise","uniqueKey":"maintenance.upgrades.items.[INDEX].message","typeLabel":"string"},"started_at":{"type":"string","description":"When the upgrade started, RFC 3339","uniqueKey":"maintenance.upgrades.items.[INDEX].started_at","typeLabel":"string"},"finished_at":{"type":"string","description":"When the upgrade finished, RFC 3339 (empty while it runs)","uniqueKey":"maintenance.upgrades.items.[INDEX].finished_at","typeLabel":"string"}},"uniqueKey":"maintenance.upgrades.items.[INDEX]","typeLabel":"object"},"uniqueKey":"maintenance.upgrades","typeLabel":"object[]"}},"uniqueKey":"maintenance","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":true,"maintenance":{"window_day":0,"window_hour":7,"window_auto":true,"window_raff_only":true,"upcoming":{"id":412,"from_version":"18.7","to_version":"18.8","what":"PostgreSQL 18.8","moves_to":"","state":"\u003cstring>","step_note":"\u003cstring>","scheduled_for":"2023-11-07T05:31:56Z","first_date":"2023-11-07T05:31:56Z","last_date":"2023-11-07T05:31:56Z","postponed_count":123,"postpones_left":123,"security":true,"expected_seconds":30,"measured_ms":123,"message":"\u003cstring>","started_by":"window","started_at":"\u003cstring>","finished_at":"\u003cstring>"},"upcoming_note":"The latest fixes for PostgreSQL 18.","history":[{"id":412,"from_version":"18.7","to_version":"18.8","what":"PostgreSQL 18.8","moves_to":"","state":"\u003cstring>","step_note":"\u003cstring>","scheduled_for":"2023-11-07T05:31:56Z","first_date":"2023-11-07T05:31:56Z","last_date":"2023-11-07T05:31:56Z","postponed_count":123,"postpones_left":123,"security":true,"expected_seconds":30,"measured_ms":123,"message":"\u003cstring>","started_by":"window","started_at":"\u003cstring>","finished_at":"\u003cstring>"}],"upgrades":[{"from_version":"18","to_version":"19","state":"backing_up","message":"\u003cstring>","started_at":"\u003cstring>","finished_at":"\u003cstring>"}]}}}},"exampleType":"generated"}},"exampleType":"generated"},"dfb3c3d5-7337-4830-93cb-a6580049aeb9":{"description":"Invalid request parameters","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","message":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"60b46728-a248-4343-ad11-08696c6129ad":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","message":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"5dc5db56-73b9-4382-afc6-a2b4fde23061":{"description":"Resource not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","message":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"66961b4a-b890-4ecb-a906-c035d8996ab1":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-Key","description":"API key for authentication. Each key is bound to a specific account.","scopes":[],"schemeName":"ApiKeyAuth"}}},"servers":{"f4a17687-1367-4b1d-8fea-5caf255f6d40":{"url":"https://api.rafftechnologies.com","description":"Production"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"X-API-Key","description":"API key for authentication. Each key is bound to a specific account.","scopes":[],"schemeName":"ApiKeyAuth"},"schema":{"title":"X-API-Key","type":"string","description":"API key for authentication. Each key is bound to a specific account.","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ApiKeyAuth","name":"X-API-Key"}],"title":"ApiKeyAuth"}]},"originalFileLocation":"api-reference/openapi.yaml"},"subdomain":"rafftechnologiesllc","siteName":"Raff","title":"Set the maintenance window - Raff","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-12-05T14:23:21.796Z","gitLastModified":"2026-12-05T14:23:03.000Z","originalFileLocation":"api-reference/databases/set-database-maintenance-window.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Set the database\u0026#x27;s weekly one-hour maintenance window, in UTC, or let Raff pick it. - Your own window: send day (0 = Sunday to 6 = Saturday) and hour (0 to 23), the start of the hour in UTC. - Let Raff pick: send {\u0026quot;auto\u0026quot;: true}. Raff picks the quietest hour of the database\u0026#x27;s week from its traffic, or Sunday 07:00 UTC until it has a week of traffic. A planned update moves to the first time in the new window at or after its planned time. It never moves earlier, does not use a postpone, and stays where it is when the new window falls after its last_date. An update you started with Run the planned update now does not move. Free databases are updated in a window Raff picks (window_raff_only is true): setting it returns 400. ## Errors - 400: day or hour is missing or out of range, or the database is on the free plan.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Raff\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/rafftechnologiesllc/81XTCmJ0Yt4lOC7_/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/rafftechnologiesllc/81XTCmJ0Yt4lOC7_/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/rafftechnologiesllc/81XTCmJ0Yt4lOC7_/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/rafftechnologiesllc/81XTCmJ0Yt4lOC7_/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/rafftechnologiesllc/81XTCmJ0Yt4lOC7_/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/rafftechnologiesllc/81XTCmJ0Yt4lOC7_/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/rafftechnologiesllc/81XTCmJ0Yt4lOC7_/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/rafftechnologiesllc/81XTCmJ0Yt4lOC7_/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/rafftechnologiesllc/81XTCmJ0Yt4lOC7_/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Set the maintenance window - Raff\">\u003cmeta data-mint-head property=\"og:description\" content=\"Set the database\u0026#x27;s weekly one-hour maintenance window, in UTC, or let Raff pick it. - Your own window: send day (0 = Sunday to 6 = Saturday) and hour (0 to 23), the start of the hour in UTC. - Let Raff pick: send {\u0026quot;auto\u0026quot;: true}. Raff picks the quietest hour of the database\u0026#x27;s week from its traffic, or Sunday 07:00 UTC until it has a week of traffic. A planned update moves to the first time in the new window at or after its planned time. It never moves earlier, does not use a postpone, and stays where it is when the new window falls after its last_date. An update you started with Run the planned update now does not move. Free databases are updated in a window Raff picks (window_raff_only is true): setting it returns 400. ## Errors - 400: day or hour is missing or out of range, or the database is on the free plan.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Raff\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.rafftechnologies.com/api-reference/databases/set-database-maintenance-window\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://rafftechnologies.com/images/og.jpg\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Set the maintenance window - Raff\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Set the database\u0026#x27;s weekly one-hour maintenance window, in UTC, or let Raff pick it. - Your own window: send day (0 = Sunday to 6 = Saturday) and hour (0 to 23), the start of the hour in UTC. - Let Raff pick: send {\u0026quot;auto\u0026quot;: true}. Raff picks the quietest hour of the database\u0026#x27;s week from its traffic, or Sunday 07:00 UTC until it has a week of traffic. A planned update moves to the first time in the new window at or after its planned time. It never moves earlier, does not use a postpone, and stays where it is when the new window falls after its last_date. An update you started with Run the planned update now does not move. Free databases are updated in a window Raff picks (window_raff_only is true): setting it returns 400. ## Errors - 400: day or hour is missing or out of range, or the database is on the free plan.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://rafftechnologies.com/images/og.jpg\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/rafftechnologiesllc/81XTCmJ0Yt4lOC7_/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Raff\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#E43D12\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.rafftechnologies.com/api-reference/databases/set-database-maintenance-window\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/databases/set-database-maintenance-window.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.rafftechnologies.com/#organization\",\"name\":\"Raff\",\"url\":\"https://docs.rafftechnologies.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/rafftechnologiesllc/-fGNhyEGXJeJV5ed/logo/light.svg?fit=max\u0026auto=format\u0026n=-fGNhyEGXJeJV5ed\u0026q=85\u0026s=0e81ca868d348265df3068ed9c0d9769\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.rafftechnologies.com#website\",\"name\":\"Raff\",\"url\":\"https://docs.rafftechnologies.com\",\"publisher\":{\"@id\":\"https://docs.rafftechnologies.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.rafftechnologies.com/api-reference/databases/set-database-maintenance-window#webpage\",\"url\":\"https://docs.rafftechnologies.com/api-reference/databases/set-database-maintenance-window\",\"name\":\"Set the maintenance window\",\"description\":\"Set the database's weekly one-hour maintenance window, in UTC, or let Raff pick it. - Your own window: send day (0 = Sunday to 6 = Saturday) and hour (0 to 23), the start of the hour in UTC. - Let Raff pick: send {\\\"auto\\\": true}. Raff picks the quietest hour of the database's week from its traffic, or Sunday 07:00 UTC until it has a week of traffic. A planned update moves to the first time in the new window at or after its planned time. It never moves earlier, does not use a postpone, and stays where it is when the new window falls after its last_date. An update you started with Run the planned update now does not move. Free databases are updated in a window Raff picks (window_raff_only is true): setting it returns 400. ## Errors - 400: day or hour is missing or out of range, or the database is on the free plan.\",\"dateModified\":\"2026-12-05T14:23:03.000Z\",\"isPartOf\":{\"@id\":\"https://docs.rafftechnologies.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.rafftechnologies.com/api-reference/databases/set-database-maintenance-window#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.rafftechnologies.com/api-reference/databases/set-database-maintenance-window#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"REST API\",\"item\":\"https://docs.rafftechnologies.com/api-reference/endpoints\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Managed Databases\",\"item\":\"https://docs.rafftechnologies.com/api-reference/databases/list-database-engines\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Updates \u0026 maintenance\",\"item\":\"https://docs.rafftechnologies.com/api-reference/databases/get-database-maintenance\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Set the maintenance window\",\"item\":\"https://docs.rafftechnologies.com/api-reference/databases/set-database-maintenance-window\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.rafftechnologies.com/api-reference/databases/set-database-maintenance-window#apireference\",\"headline\":\"Set the maintenance window\",\"name\":\"Set the maintenance window\",\"description\":\"Set the database's weekly one-hour maintenance window, in UTC, or let Raff pick it. - Your own window: send day (0 = Sunday to 6 = Saturday) and hour (0 to 23), the start of the hour in UTC. - Let Raff pick: send {\\\"auto\\\": true}. Raff picks the quietest hour of the database's week from its traffic, or Sunday 07:00 UTC until it has a week of traffic. A planned update moves to the first time in the new window at or after its planned time. It never moves earlier, does not use a postpone, and stays where it is when the new window falls after its last_date. An update you started with Run the planned update now does not move. Free databases are updated in a window Raff picks (window_raff_only is true): setting it returns 400. ## Errors - 400: day or hour is missing or out of range, or the database is on the free plan.\",\"url\":\"https://docs.rafftechnologies.com/api-reference/databases/set-database-maintenance-window\",\"mainEntityOfPage\":{\"@id\":\"https://docs.rafftechnologies.com/api-reference/databases/set-database-maintenance-window#webpage\"},\"image\":\"https://rafftechnologies.com/images/og.jpg\",\"dateModified\":\"2026-12-05T14:23:03.000Z\",\"publisher\":{\"@id\":\"https://docs.rafftechnologies.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.rafftechnologies.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Raff\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Raff\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/databases/set-database-maintenance-window.md","siteName":"Raff","nav":{"global":{"anchors":[{"anchor":"Changelog","icon":"clock-rotate-left","href":"/api-reference/changelog"}]},"tabs":[{"tab":"Products","pages":[{"title":"Products","href":"/products"}]},{"tab":"Reference","groups":[{"group":"Getting Started","pages":[{"title":"Introduction","href":"/introduction"},{"title":"Quickstart","href":"/quickstart"},{"title":"Authentication","href":"/authentication"}]},{"group":"Guides","pages":[{"title":"Create Your First VM","href":"/guides/create-your-first-vm"}]},{"group":"REST API","pages":[{"title":"All Endpoints","href":"/api-reference/endpoints"},{"group":"Catalog","pages":[{"title":"List Regions","openapi":"GET /api/v1/public/regions","href":"/api-reference/catalog/list-regions"},{"title":"List OS Templates","openapi":"GET /api/v1/public/templates","href":"/api-reference/catalog/list-templates"},{"title":"List VM Pricing","openapi":"GET /api/v1/public/pricing/vm","href":"/api-reference/catalog/list-vm-pricing"},{"title":"Get Volume Pricing","openapi":"GET /api/v1/public/pricing/volume","href":"/api-reference/catalog/list-volume-pricing"},{"title":"Get Snapshot Pricing","openapi":"GET /api/v1/public/pricing/snapshot","href":"/api-reference/catalog/list-snapshot-pricing"},{"title":"Get Backup Pricing","openapi":"GET /api/v1/public/pricing/backup","href":"/api-reference/catalog/list-backup-pricing"},{"title":"Get IP Pricing","openapi":"GET /api/v1/public/pricing/ip","href":"/api-reference/catalog/list-ip-pricing"},{"title":"Get VPN Pricing","openapi":"GET /api/v1/public/pricing/vpn","href":"/api-reference/catalog/list-vpn-pricing"},{"title":"List Database Pricing","openapi":"GET /api/v1/public/pricing/database","href":"/api-reference/catalog/list-database-pricing"},{"title":"List Kubernetes Pricing","openapi":"GET /api/v1/public/pricing/kubernetes","href":"/api-reference/catalog/list-kubernetes-pricing"}]},{"group":"Projects","pages":[{"title":"List Projects","openapi":"GET /api/v1/projects","href":"/api-reference/projects/list-projects"},{"title":"Create Project","openapi":"POST /api/v1/projects","href":"/api-reference/projects/create-project"},{"title":"Get Project","openapi":"GET /api/v1/projects/{id}","href":"/api-reference/projects/get-project"},{"title":"Update Project","openapi":"PUT /api/v1/projects/{id}","href":"/api-reference/projects/update-project"},{"title":"Delete Project","openapi":"DELETE /api/v1/projects/{id}","href":"/api-reference/projects/delete-project"}]},{"group":"Virtual Machines","pages":[{"group":"Lifecycle","pages":[{"title":"List VMs","openapi":"GET /api/v1/vms","href":"/api-reference/endpoint/list-vms"},{"title":"Create VM","openapi":"POST /api/v1/vms","href":"/api-reference/endpoint/create-vm"},{"title":"Get VM","openapi":"GET /api/v1/vms/{id}","href":"/api-reference/endpoint/get-vm"},{"title":"Delete VM","openapi":"DELETE /api/v1/vms/{id}","href":"/api-reference/endpoint/delete-vm"},{"title":"Bulk Delete VMs","openapi":"DELETE /api/v1/vms/bulk","href":"/api-reference/endpoint/bulk-delete-vms"}]},{"group":"Power \u0026 state","pages":[{"title":"Start VM","openapi":"POST /api/v1/vms/{id}/start","href":"/api-reference/endpoint/start-vm"},{"title":"Stop VM","openapi":"POST /api/v1/vms/{id}/stop","href":"/api-reference/endpoint/stop-vm"},{"title":"Reboot VM","openapi":"POST /api/v1/vms/{id}/reboot","href":"/api-reference/endpoint/reboot-vm"},{"title":"Hard reboot VM","openapi":"POST /api/v1/vms/{id}/reboot-hard","href":"/api-reference/endpoint/hard-reboot-vm"},{"title":"Rename VM","openapi":"PATCH /api/v1/vms/{id}/rename","href":"/api-reference/endpoint/rename-vm"},{"title":"Set console access policy","openapi":"PATCH /api/v1/vms/{id}/console-policy","href":"/api-reference/endpoint/set-vm-console-policy"},{"title":"Reset VM Password","openapi":"POST /api/v1/vms/{id}/reset-password","href":"/api-reference/endpoint/reset-vm-password"},{"title":"Reinstall VM","openapi":"POST /api/v1/vms/{id}/reinstall","href":"/api-reference/endpoint/reinstall-vm"},{"title":"Factory Reset VM","openapi":"POST /api/v1/vms/{id}/factory-reset","href":"/api-reference/endpoint/factory-reset-vm"}]},{"group":"SSH keys","pages":[{"title":"List SSH Keys on a VM","openapi":"GET /api/v1/vms/{id}/ssh-keys","href":"/api-reference/endpoint/list-vm-ssh-keys"},{"title":"Add an SSH Key to a VM","openapi":"POST /api/v1/vms/{id}/ssh-keys","href":"/api-reference/endpoint/add-vm-ssh-key"},{"title":"Remove an SSH Key from a VM","openapi":"DELETE /api/v1/vms/{id}/ssh-keys/{fingerprint}","href":"/api-reference/endpoint/remove-vm-ssh-key"}]},{"group":"Resize \u0026 images","pages":[{"title":"Resize VM","openapi":"POST /api/v1/vms/{id}/resize","href":"/api-reference/endpoint/resize-vm"},{"title":"Resize VM Disk","openapi":"POST /api/v1/vms/{id}/disk/resize","href":"/api-reference/endpoint/resize-vm-disk"},{"title":"Save VM disk as custom image","openapi":"POST /api/v1/vms/{id}/save-image","href":"/api-reference/endpoint/save-vm-disk-as-image"}]},{"group":"Tags","pages":[{"title":"List tags","openapi":"GET /api/v1/tags","href":"/api-reference/endpoint/list-tags"},{"title":"Create tag","openapi":"POST /api/v1/tags","href":"/api-reference/endpoint/create-tag"},{"title":"Update tag","openapi":"PATCH /api/v1/tags/{id}","href":"/api-reference/endpoint/update-tag"},{"title":"Delete tag","openapi":"DELETE /api/v1/tags/{id}","href":"/api-reference/endpoint/delete-tag"},{"title":"Add tag to VM","openapi":"POST /api/v1/vms/{id}/tags","href":"/api-reference/endpoint/add-vm-tag"},{"title":"Update VM tag","openapi":"PATCH /api/v1/vms/{id}/tags/{tagId}","href":"/api-reference/endpoint/update-vm-tag"},{"title":"Remove VM tag","openapi":"DELETE /api/v1/vms/{id}/tags/{tagId}","href":"/api-reference/endpoint/remove-vm-tag"},{"title":"Get VM tag firewall","openapi":"GET /api/v1/vms/{id}/tag-firewall","href":"/api-reference/endpoint/get-vm-tag-firewall"}]},{"group":"Notes","pages":[{"title":"Get VM notes","openapi":"GET /api/v1/vms/{id}/notes","href":"/api-reference/endpoint/get-vm-notes"},{"title":"Upsert VM note","openapi":"PUT /api/v1/vms/{id}/notes/{type}","href":"/api-reference/endpoint/upsert-vm-note"},{"title":"Update VM note","openapi":"PATCH /api/v1/vms/{id}/notes/{type}","href":"/api-reference/endpoint/update-vm-note"},{"title":"Append to VM note","openapi":"POST /api/v1/vms/{id}/notes/{type}/append","href":"/api-reference/endpoint/append-vm-note"}]}]},{"group":"Managed Databases","pages":[{"group":"Databases","pages":[{"title":"List database engines","openapi":"GET /api/v1/databases/engines","href":"/api-reference/databases/list-database-engines"},{"title":"List database plans","openapi":"GET /api/v1/databases/plans","href":"/api-reference/databases/list-database-plans"},{"title":"List databases","openapi":"GET /api/v1/databases","href":"/api-reference/databases/list-databases"},{"title":"Create database","openapi":"POST /api/v1/databases","href":"/api-reference/databases/create-database"},{"title":"Get database","openapi":"GET /api/v1/databases/{database_id}","href":"/api-reference/databases/get-database"},{"title":"Rename database","openapi":"PATCH /api/v1/databases/{database_id}","href":"/api-reference/databases/update-database"},{"title":"Delete database","openapi":"DELETE /api/v1/databases/{database_id}","href":"/api-reference/databases/delete-database"},{"title":"Scale database","openapi":"POST /api/v1/databases/{database_id}/scale","href":"/api-reference/databases/scale-database"},{"title":"Upgrade database","openapi":"POST /api/v1/databases/{database_id}/upgrade","href":"/api-reference/databases/upgrade-database"},{"title":"Resume a paused database","openapi":"POST /api/v1/databases/{database_id}/resume","href":"/api-reference/databases/resume-database"}]},{"group":"Updates \u0026 maintenance","pages":[{"title":"Get planned updates","openapi":"GET /api/v1/databases/{database_id}/maintenance","href":"/api-reference/databases/get-database-maintenance"},{"title":"Run the planned update now","openapi":"POST /api/v1/databases/{database_id}/maintenance/update-now","href":"/api-reference/databases/update-database-maintenance-now"},{"title":"Postpone the planned update","openapi":"POST /api/v1/databases/{database_id}/maintenance/postpone","description":"Move the planned update to a later time.\n\n- **Without a body**: to the next window after the planned time, a week later (a day later for a security fix).\n- **With `to`**: to that time, rounded down to the minute. It must be after the planned time and at least an hour from now.\n- **Limits**: an update can be postponed 3 times (`postpones_left`), and never past `last_date`: 14 days after the first planned date, or 3 days after the notice of a security fix.\n\n\u003cNote>\nBefore postponing, read `scheduled_for`, `last_date` and `postpones_left` of `upcoming` in [Get planned updates](/api-reference/databases/get-database-maintenance).\n\u003c/Note>\n\n## Errors\n\n- `400`: `to` is not an RFC 3339 time, is not after the planned time, or is less than an hour from now.\n- `412`: no update is planned; it is already running; it was already postponed 3 times; the new time is past `last_date`. `error` says which.\n","href":"/api-reference/databases/postpone-database-maintenance"},{"title":"Set the maintenance window","openapi":"PUT /api/v1/databases/{database_id}/maintenance/window","href":"/api-reference/databases/set-database-maintenance-window"}]},{"group":"Connect \u0026 access","pages":[{"title":"Get connection details","openapi":"GET /api/v1/databases/{database_id}/connection","description":"Connection details for the database: username, database name, and two endpoints.\n\n- **Private** (`host`, `port`, `connection_uri`): reachable from inside the database's VPC. For PostgreSQL, `port` is the direct port 5432; the pooler is on 6432 of the same host. Use these only when the database has a `vpc_id`; without a VPC there is no private endpoint you can reach.\n- **Public** (`public_host`, `public_port`, `public_connection_uri`): filled while public access is on.\n- **Read address** (PostgreSQL with at least one read replica): queries sent there are spread across the replicas, and a write is refused. Private: `read_host`, `read_port` (5433) and `read_connection_uri`, on the same hostname as `host`. Public: `public_read_host` (the hostname with `-ro`), `public_read_port` (5432) and `public_read_connection_uri`, filled while public access is on. All six are empty for a database without read replicas and for other engines.\n\nThe `password` field is empty unless you pass `reveal=true`. TLS is always required: `ca_cert` is the database's certificate authority, for clients that verify the server certificate (the public hostname is in the certificate).\n","href":"/api-reference/databases/get-database-connection"},{"title":"Rotate credentials","openapi":"POST /api/v1/databases/{database_id}/credentials/rotate","href":"/api-reference/databases/rotate-database-credentials"},{"title":"Connect database to VPC","openapi":"POST /api/v1/databases/{database_id}/vpc","href":"/api-reference/databases/connect-database-v-p-c"},{"title":"Disconnect database from VPC","openapi":"DELETE /api/v1/databases/{database_id}/vpc","href":"/api-reference/databases/disconnect-database-v-p-c"},{"title":"Set public access","openapi":"POST /api/v1/databases/{database_id}/public-access","href":"/api-reference/databases/set-database-public-access"},{"title":"List database users","openapi":"GET /api/v1/databases/{database_id}/users","href":"/api-reference/databases/list-database-users"},{"title":"Create database user","openapi":"POST /api/v1/databases/{database_id}/users","href":"/api-reference/databases/create-database-user"},{"title":"Rotate database user password","openapi":"POST /api/v1/databases/{database_id}/users/{name}/rotate","href":"/api-reference/databases/rotate-database-user"},{"title":"Get database user password","openapi":"GET /api/v1/databases/{database_id}/users/{name}/credential","href":"/api-reference/databases/get-database-user-credential"},{"title":"Delete database user","openapi":"DELETE /api/v1/databases/{database_id}/users/{name}","href":"/api-reference/databases/delete-database-user"}]},{"group":"Query \u0026 data","pages":[{"title":"Run a query","openapi":"POST /api/v1/databases/{database_id}/console","href":"/api-reference/databases/run-database-query"},{"title":"Browse schemas, tables, and keys","openapi":"POST /api/v1/databases/{database_id}/browse","href":"/api-reference/databases/browse-database"},{"title":"List saved queries","openapi":"GET /api/v1/databases/{database_id}/saved-queries","href":"/api-reference/databases/list-database-saved-queries"},{"title":"Save a query","openapi":"PUT /api/v1/databases/{database_id}/saved-queries","href":"/api-reference/databases/save-database-saved-query"},{"title":"Delete a saved query","openapi":"DELETE /api/v1/databases/{database_id}/saved-queries/{name}","href":"/api-reference/databases/delete-database-saved-query"}]},{"group":"Backups \u0026 restore","pages":[{"title":"List backups","openapi":"GET /api/v1/databases/{database_id}/backups","href":"/api-reference/databases/list-database-backups"},{"title":"Create backup","openapi":"POST /api/v1/databases/{database_id}/backups","href":"/api-reference/databases/create-database-backup"},{"title":"Restore database","openapi":"POST /api/v1/databases/{database_id}/restore","href":"/api-reference/databases/restore-database"}]},{"group":"Observability","pages":[{"title":"Get metrics","openapi":"GET /api/v1/databases/{database_id}/metrics","href":"/api-reference/databases/get-database-metrics"},{"title":"Get metrics history","openapi":"GET /api/v1/databases/{database_id}/metrics/history","href":"/api-reference/databases/get-database-metrics-history"},{"title":"Get traffic by client","openapi":"GET /api/v1/databases/{database_id}/metrics/clients","href":"/api-reference/databases/get-database-client-traffic"},{"title":"Get slow queries","openapi":"GET /api/v1/databases/{database_id}/slow-queries","href":"/api-reference/databases/get-database-slow-queries"},{"title":"Get logs","openapi":"GET /api/v1/databases/{database_id}/logs","href":"/api-reference/databases/get-database-logs"}]},{"group":"Configuration","pages":[{"title":"List extensions","openapi":"GET /api/v1/databases/{database_id}/extensions","href":"/api-reference/databases/list-database-extensions"},{"title":"Enable or disable extension","openapi":"POST /api/v1/databases/{database_id}/extensions","href":"/api-reference/databases/set-database-extension"},{"title":"List engine parameters","openapi":"GET /api/v1/databases/{database_id}/parameters","href":"/api-reference/databases/list-database-parameters"},{"title":"List apps and functions using the database","openapi":"GET /api/v1/databases/{database_id}/consumers","href":"/api-reference/databases/list-database-consumers"}]}]},{"group":"Raff Apps","pages":[{"group":"Services","pages":[{"title":"List app services","openapi":"GET /api/v1/apps/services","href":"/api-reference/apps/list-app-services"},{"title":"Create app service","openapi":"POST /api/v1/apps/services","href":"/api-reference/apps/create-app-service"},{"title":"Get app service","openapi":"GET /api/v1/apps/services/{service_id}","href":"/api-reference/apps/get-app-service"},{"title":"Update app service","openapi":"PATCH /api/v1/apps/services/{service_id}","href":"/api-reference/apps/update-app-service"},{"title":"Delete app service","openapi":"DELETE /api/v1/apps/services/{service_id}","href":"/api-reference/apps/delete-app-service"},{"title":"Pause app service","openapi":"POST /api/v1/apps/services/{service_id}/pause","href":"/api-reference/apps/pause-app-service"},{"title":"Resume app service","openapi":"POST /api/v1/apps/services/{service_id}/resume","href":"/api-reference/apps/resume-app-service"},{"title":"Scale app service","openapi":"POST /api/v1/apps/services/{service_id}/scale","href":"/api-reference/apps/scale-app-service"},{"title":"List app templates","openapi":"GET /api/v1/apps/templates","href":"/api-reference/apps/list-app-templates"},{"title":"List GitHub connections","openapi":"GET /api/v1/apps/github/installations","href":"/api-reference/apps/list-app-github-connections"}]},{"group":"Deployments","pages":[{"title":"Request source upload URL","openapi":"POST /api/v1/apps/services/{service_id}/source-upload","href":"/api-reference/apps/request-app-source-upload"},{"title":"List deployments","openapi":"GET /api/v1/apps/services/{service_id}/deployments","href":"/api-reference/apps/list-app-deployments"},{"title":"Create deployment","openapi":"POST /api/v1/apps/services/{service_id}/deployments","href":"/api-reference/apps/create-app-deployment"},{"title":"Get deployment","openapi":"GET /api/v1/apps/deployments/{deployment_id}","href":"/api-reference/apps/get-app-deployment"},{"title":"Get deployment build logs","openapi":"GET /api/v1/apps/deployments/{deployment_id}/logs","href":"/api-reference/apps/get-app-deployment-logs"},{"title":"Roll back to a deployment","openapi":"POST /api/v1/apps/services/{service_id}/rollback","href":"/api-reference/apps/rollback-app-service"}]},{"group":"Observability","pages":[{"title":"List runtime logs","openapi":"GET /api/v1/apps/services/{service_id}/logs","href":"/api-reference/apps/list-app-logs"},{"title":"Get service metrics","openapi":"GET /api/v1/apps/services/{service_id}/metrics","href":"/api-reference/apps/get-app-service-metrics"},{"title":"List app events","openapi":"GET /api/v1/apps/services/{service_id}/events","href":"/api-reference/apps/list-app-events"},{"title":"List app instances","openapi":"GET /api/v1/apps/services/{service_id}/instances","href":"/api-reference/apps/list-app-instances"}]},{"group":"Environment variables","pages":[{"title":"List environment variables","openapi":"GET /api/v1/apps/services/{service_id}/env","href":"/api-reference/apps/list-app-env-vars"},{"title":"List environment variables with values","openapi":"GET /api/v1/apps/services/{service_id}/env/reveal","href":"/api-reference/apps/reveal-app-env-vars"},{"title":"Set environment variable","openapi":"PUT /api/v1/apps/services/{service_id}/env","href":"/api-reference/apps/set-app-env-var"},{"title":"Bulk set environment variables","openapi":"PUT /api/v1/apps/services/{service_id}/env/bulk","href":"/api-reference/apps/bulk-set-app-env-vars"},{"title":"Delete environment variable","openapi":"DELETE /api/v1/apps/services/{service_id}/env/{key}","href":"/api-reference/apps/delete-app-env-var"}]},{"group":"Custom domains","pages":[{"title":"List custom domains","openapi":"GET /api/v1/apps/services/{service_id}/domains","href":"/api-reference/apps/list-app-custom-domains"},{"title":"Add custom domain","openapi":"POST /api/v1/apps/services/{service_id}/domains","href":"/api-reference/apps/add-app-custom-domain"},{"title":"Delete custom domain","openapi":"DELETE /api/v1/apps/domains/{domain_id}","href":"/api-reference/apps/delete-app-custom-domain"},{"title":"Retry domain verification","openapi":"POST /api/v1/apps/domains/{domain_id}/retry","href":"/api-reference/apps/retry-app-domain-verification"}]},{"group":"Database links","pages":[{"title":"List database links","openapi":"GET /api/v1/apps/services/{service_id}/bindings","href":"/api-reference/apps/list-app-bindings"},{"title":"Link a database to an app","openapi":"POST /api/v1/apps/services/{service_id}/bindings","href":"/api-reference/apps/create-app-binding"},{"title":"Unlink a database","openapi":"DELETE /api/v1/apps/bindings/{binding_id}","href":"/api-reference/apps/delete-app-binding"},{"title":"Rotate a link's password","openapi":"POST /api/v1/apps/bindings/{binding_id}/rotate","href":"/api-reference/apps/rotate-app-binding"}]},{"group":"Previews","pages":[{"title":"List pull request previews","openapi":"GET /api/v1/apps/services/{service_id}/previews","href":"/api-reference/apps/list-app-previews"},{"title":"Delete a preview","openapi":"DELETE /api/v1/apps/previews/{preview_id}","href":"/api-reference/apps/delete-app-preview"},{"title":"Redeploy a preview","openapi":"POST /api/v1/apps/previews/{preview_id}/redeploy","href":"/api-reference/apps/redeploy-app-preview"}]},{"group":"Jobs","pages":[{"title":"Trigger a manual job run","openapi":"POST /api/v1/apps/services/{service_id}/jobs/run","href":"/api-reference/apps/run-app-job"},{"title":"List job runs","openapi":"GET /api/v1/apps/services/{service_id}/jobs/runs","href":"/api-reference/apps/list-app-job-runs"},{"title":"Cancel a job run","openapi":"POST /api/v1/apps/jobs/runs/{run_id}/cancel","href":"/api-reference/apps/cancel-app-job-run"}]},{"group":"Billing \u0026 tiers","pages":[{"title":"List Apps tiers","openapi":"GET /api/v1/apps/tiers","href":"/api-reference/apps/list-app-tiers"},{"title":"Get Apps usage","openapi":"GET /api/v1/apps/usage","href":"/api-reference/apps/get-apps-usage"},{"title":"Get spend cap settings","openapi":"GET /api/v1/apps/spend-settings","href":"/api-reference/apps/get-app-spend-settings"},{"title":"Update spend cap settings","openapi":"PATCH /api/v1/apps/spend-settings","href":"/api-reference/apps/update-app-spend-settings"}]}]},{"group":"Networking","pages":[{"group":"VPCs","pages":[{"title":"List VPCs","openapi":"GET /api/v1/vpcs","href":"/api-reference/endpoint/list-vpcs"},{"title":"Create VPC","openapi":"POST /api/v1/vpcs","href":"/api-reference/endpoint/create-vpc"},{"title":"Get VPC","openapi":"GET /api/v1/vpcs/{id}","href":"/api-reference/endpoint/get-vpc"},{"title":"Update VPC","openapi":"PUT /api/v1/vpcs/{id}","href":"/api-reference/endpoint/update-vpc"},{"title":"Delete VPC","openapi":"DELETE /api/v1/vpcs/{id}","href":"/api-reference/endpoint/delete-vpc"},{"title":"Suggest CIDR blocks for new VPCs","openapi":"GET /api/v1/vpcs/cidr-suggestions","href":"/api-reference/endpoint/list-vpc-cidr-suggestions"}]},{"group":"Public IPs","pages":[{"title":"List floating IPs","openapi":"GET /api/v1/ips","href":"/api-reference/endpoint/list-ips"},{"title":"Reserve a floating IP","openapi":"POST /api/v1/ips/reserve","href":"/api-reference/endpoint/reserve-ip"},{"title":"Get floating IP","openapi":"GET /api/v1/ips/{id}","href":"/api-reference/endpoint/get-ip"},{"title":"Release a reserved IP","openapi":"DELETE /api/v1/ips/{id}/reserve","href":"/api-reference/endpoint/release-ip"},{"title":"Change reserved IP","openapi":"POST /api/v1/ips/{id}/change","href":"/api-reference/endpoint/change-ip"}]},{"group":"Firewall","pages":[{"title":"List firewalls","openapi":"GET /api/v1/security-groups","href":"/api-reference/endpoint/list-firewalls"},{"title":"Create firewall","openapi":"POST /api/v1/security-groups","href":"/api-reference/endpoint/create-firewall"},{"title":"List firewall templates","openapi":"GET /api/v1/security-groups/templates","href":"/api-reference/endpoint/list-firewall-templates"},{"title":"Get firewall","openapi":"GET /api/v1/security-groups/{id}","href":"/api-reference/endpoint/get-firewall"},{"title":"Update firewall","openapi":"PUT /api/v1/security-groups/{id}","href":"/api-reference/endpoint/update-firewall"},{"title":"Delete firewall","openapi":"DELETE /api/v1/security-groups/{id}","href":"/api-reference/endpoint/delete-firewall"},{"title":"Get firewall tags","openapi":"GET /api/v1/security-groups/{id}/tags","href":"/api-reference/endpoint/get-firewall-tags"},{"title":"Set firewall tags","openapi":"PUT /api/v1/security-groups/{id}/tags","href":"/api-reference/endpoint/set-firewall-tags"}]},{"group":"VM network attachments","pages":[{"title":"List VM network interfaces","openapi":"GET /api/v1/vms/{id}/networks","href":"/api-reference/endpoint/list-vm-networks"},{"title":"Attach VM to VPC","openapi":"POST /api/v1/vms/{id}/vpc","href":"/api-reference/endpoint/attach-vm-to-vpc"},{"title":"Detach VM from VPC","openapi":"DELETE /api/v1/vms/{id}/vpc/{nic_id}","href":"/api-reference/endpoint/detach-vm-from-vpc"},{"title":"Attach floating IP to VM","openapi":"POST /api/v1/vms/{id}/ip","href":"/api-reference/endpoint/attach-vm-ip"},{"title":"Detach floating IP from VM","openapi":"DELETE /api/v1/vms/{id}/ip/{nic_id}","href":"/api-reference/endpoint/detach-vm-ip"},{"title":"Attach firewall to VM NIC","openapi":"POST /api/v1/vms/{id}/security-groups","href":"/api-reference/endpoint/attach-vm-firewall"},{"title":"Detach firewall from VM NIC","openapi":"DELETE /api/v1/vms/{id}/security-groups/{sg_id}/{nic_id}","href":"/api-reference/endpoint/detach-vm-firewall"}]}]},{"group":"Volumes","pages":[{"title":"List Volumes","openapi":"GET /api/v1/volumes","href":"/api-reference/volumes/list-volumes"},{"title":"Create Volume","openapi":"POST /api/v1/volumes","href":"/api-reference/volumes/create-volume"},{"title":"Get Volume","openapi":"GET /api/v1/volumes/{id}","href":"/api-reference/volumes/get-volume"},{"title":"Delete Volume","openapi":"DELETE /api/v1/volumes/{id}","href":"/api-reference/volumes/delete-volume"},{"title":"Attach Volume","openapi":"POST /api/v1/volumes/{id}/attach","href":"/api-reference/volumes/attach-volume"},{"title":"Detach Volume","openapi":"POST /api/v1/volumes/{id}/detach","href":"/api-reference/volumes/detach-volume"},{"title":"Resize Volume","openapi":"PATCH /api/v1/volumes/{id}","href":"/api-reference/volumes/resize-volume"}]},{"group":"Kubernetes","pages":[{"group":"Clusters","pages":[{"title":"List Kubernetes Clusters","openapi":"GET /api/v1/k8s/clusters","href":"/api-reference/kubernetes/list-clusters"},{"title":"Create Kubernetes Cluster","openapi":"POST /api/v1/k8s/clusters","href":"/api-reference/kubernetes/create-cluster"},{"title":"Get Kubernetes Cluster","openapi":"GET /api/v1/k8s/clusters/{cluster_id}","href":"/api-reference/kubernetes/get-cluster"},{"title":"Rename Kubernetes Cluster","openapi":"PATCH /api/v1/k8s/clusters/{cluster_id}","href":"/api-reference/kubernetes/rename-cluster"},{"title":"Delete Kubernetes Cluster","openapi":"DELETE /api/v1/k8s/clusters/{cluster_id}","href":"/api-reference/kubernetes/delete-cluster"},{"title":"Get Kubeconfig","openapi":"GET /api/v1/k8s/clusters/{cluster_id}/kubeconfig","href":"/api-reference/kubernetes/get-kubeconfig"},{"title":"Upgrade to HA Control Plane","openapi":"POST /api/v1/k8s/clusters/{cluster_id}/ha","href":"/api-reference/kubernetes/upgrade-to-ha"},{"title":"List Available Version Upgrades","openapi":"GET /api/v1/k8s/clusters/{cluster_id}/upgrades","href":"/api-reference/kubernetes/get-cluster-upgrades"},{"title":"Upgrade Kubernetes Version","openapi":"POST /api/v1/k8s/clusters/{cluster_id}/upgrade","href":"/api-reference/kubernetes/upgrade-cluster-version"},{"title":"Set Upgrade Mode and Maintenance Window","openapi":"PATCH /api/v1/k8s/clusters/{cluster_id}/maintenance","href":"/api-reference/kubernetes/update-cluster-maintenance"},{"title":"List Kubernetes Versions","openapi":"GET /api/v1/k8s/versions","href":"/api-reference/kubernetes/list-kubernetes-versions"},{"title":"List Kubernetes Node Plans","openapi":"GET /api/v1/k8s/node-plans","href":"/api-reference/kubernetes/list-node-plans"}]},{"group":"Node pools","pages":[{"title":"List Node Pools","openapi":"GET /api/v1/k8s/clusters/{cluster_id}/pools","href":"/api-reference/kubernetes/list-node-pools"},{"title":"Add Node Pool","openapi":"POST /api/v1/k8s/clusters/{cluster_id}/pools","href":"/api-reference/kubernetes/add-node-pool"},{"title":"Update Node Pool","openapi":"PATCH /api/v1/k8s/clusters/{cluster_id}/pools/{pool_id}","href":"/api-reference/kubernetes/update-node-pool"},{"title":"Scale Node Pool","openapi":"POST /api/v1/k8s/clusters/{cluster_id}/pools/{pool_id}/scale","href":"/api-reference/kubernetes/scale-node-pool"},{"title":"Delete Node Pool","openapi":"DELETE /api/v1/k8s/clusters/{cluster_id}/pools/{pool_id}","href":"/api-reference/kubernetes/delete-node-pool"}]},{"group":"Observability","pages":[{"title":"List Cluster Nodes","openapi":"GET /api/v1/k8s/clusters/{cluster_id}/nodes","href":"/api-reference/kubernetes/list-cluster-nodes"},{"title":"List Cluster Events","openapi":"GET /api/v1/k8s/clusters/{cluster_id}/events","href":"/api-reference/kubernetes/list-cluster-events"},{"title":"Get Cluster Metrics","openapi":"GET /api/v1/k8s/clusters/{cluster_id}/metrics","href":"/api-reference/kubernetes/get-cluster-metrics"},{"title":"Get Cluster Utilization Stats","openapi":"GET /api/v1/k8s/clusters/stats","href":"/api-reference/kubernetes/get-cluster-stats"}]},{"group":"Networking","pages":[{"title":"Get Cluster Firewall","openapi":"GET /api/v1/k8s/clusters/{cluster_id}/firewall","href":"/api-reference/kubernetes/get-cluster-firewall"},{"title":"Assign Cluster Firewall","openapi":"POST /api/v1/k8s/clusters/{cluster_id}/firewall","href":"/api-reference/kubernetes/assign-cluster-firewall"},{"title":"Reset Cluster Firewall","openapi":"DELETE /api/v1/k8s/clusters/{cluster_id}/firewall","href":"/api-reference/kubernetes/reset-cluster-firewall"},{"title":"Get MetalLB Address Pool","openapi":"GET /api/v1/k8s/clusters/{cluster_id}/metallb-pool","href":"/api-reference/kubernetes/get-metallb-pool"},{"title":"Resize MetalLB Address Pool","openapi":"PUT /api/v1/k8s/clusters/{cluster_id}/metallb-pool","href":"/api-reference/kubernetes/update-metallb-pool"},{"title":"List TCP Port Forwards","openapi":"GET /api/v1/k8s/clusters/{cluster_id}/tcp-ports","href":"/api-reference/kubernetes/list-tcp-ports"},{"title":"Delete TCP Port Forward","openapi":"DELETE /api/v1/k8s/clusters/{cluster_id}/tcp-ports/{port}","href":"/api-reference/kubernetes/delete-tcp-port"}]}]},{"group":"Snapshots","pages":[{"title":"List Snapshots","openapi":"GET /api/v1/snapshots","href":"/api-reference/snapshots/list-snapshots"},{"title":"Create Snapshot","openapi":"POST /api/v1/snapshots","href":"/api-reference/snapshots/create-snapshot"},{"title":"Get Snapshot","openapi":"GET /api/v1/snapshots/{id}","href":"/api-reference/snapshots/get-snapshot"},{"title":"Delete Snapshot","openapi":"DELETE /api/v1/snapshots/{id}","href":"/api-reference/snapshots/delete-snapshot"},{"title":"Restore Snapshot","openapi":"POST /api/v1/snapshots/{id}/restore","href":"/api-reference/snapshots/restore-snapshot"},{"title":"Rename Snapshot","openapi":"PATCH /api/v1/snapshots/{id}/rename","href":"/api-reference/snapshots/rename-snapshot"}]},{"group":"Backups","pages":[{"group":"Backups","pages":[{"title":"List Backups","openapi":"GET /api/v1/backups","href":"/api-reference/backups/list-backups"},{"title":"Create Backup","openapi":"POST /api/v1/backups","href":"/api-reference/backups/create-backup"},{"title":"Get Backup","openapi":"GET /api/v1/backups/{id}","href":"/api-reference/backups/get-backup"},{"title":"Delete Backup","openapi":"DELETE /api/v1/backups/{id}","href":"/api-reference/backups/delete-backup"},{"title":"Delete Backup Series","openapi":"DELETE /api/v1/backups/{id}/chain","href":"/api-reference/backups/delete-backup-chain"},{"title":"Restore Backup","openapi":"POST /api/v1/backups/{id}/restore","href":"/api-reference/backups/restore-backup"},{"title":"Reset Backup Series","openapi":"POST /api/v1/vms/{id}/backups/reset-chain","href":"/api-reference/backups/reset-backup-chain"}]},{"group":"Schedules","pages":[{"title":"List Backup Schedules","openapi":"GET /api/v1/backup-schedules","href":"/api-reference/backups/schedules/list-backup-schedules"},{"title":"Create Backup Schedule","openapi":"POST /api/v1/backup-schedules","href":"/api-reference/backups/schedules/create-backup-schedule"},{"title":"Get Backup Schedule","openapi":"GET /api/v1/backup-schedules/{id}","href":"/api-reference/backups/schedules/get-backup-schedule"},{"title":"Update Backup Schedule","openapi":"PATCH /api/v1/backup-schedules/{id}","href":"/api-reference/backups/schedules/update-backup-schedule"},{"title":"Delete Backup Schedule","openapi":"DELETE /api/v1/backup-schedules/{id}","href":"/api-reference/backups/schedules/delete-backup-schedule"}]}]},{"group":"SSH Keys","pages":[{"title":"List SSH Keys","openapi":"GET /api/v1/ssh-keys","href":"/api-reference/ssh-keys/list-ssh-keys"},{"title":"Create SSH Key","openapi":"POST /api/v1/ssh-keys","href":"/api-reference/ssh-keys/create-ssh-key"},{"title":"Get SSH Key","openapi":"GET /api/v1/ssh-keys/{id}","href":"/api-reference/ssh-keys/get-ssh-key"},{"title":"Update SSH Key","openapi":"PUT /api/v1/ssh-keys/{id}","href":"/api-reference/ssh-keys/update-ssh-key"},{"title":"Delete SSH Key","openapi":"DELETE /api/v1/ssh-keys/{id}","href":"/api-reference/ssh-keys/delete-ssh-key"}]},{"group":"Team \u0026 Projects","pages":[{"group":"Members","pages":[{"title":"List Members","openapi":"GET /api/v1/members","href":"/api-reference/members/list-members"},{"title":"Add Member","openapi":"POST /api/v1/members","href":"/api-reference/members/add-member"},{"title":"Get Member","openapi":"GET /api/v1/members/{id}","href":"/api-reference/members/get-member"},{"title":"Update Member","openapi":"PATCH /api/v1/members/{id}","href":"/api-reference/members/update-member"},{"title":"Remove Member","openapi":"DELETE /api/v1/members/{id}","href":"/api-reference/members/remove-member"}]},{"group":"Project Members","pages":[{"title":"List Project Members","openapi":"GET /api/v1/projects/{id}/members","href":"/api-reference/project-members/list-project-members"},{"title":"Add Project Member","openapi":"POST /api/v1/projects/{id}/members","href":"/api-reference/project-members/add-project-member"},{"title":"Get Project Member","openapi":"GET /api/v1/projects/{id}/members/{member_id}","href":"/api-reference/project-members/get-project-member"},{"title":"Update Project Member","openapi":"PATCH /api/v1/projects/{id}/members/{member_id}","href":"/api-reference/project-members/update-project-member"},{"title":"Remove Project Member","openapi":"DELETE /api/v1/projects/{id}/members/{member_id}","href":"/api-reference/project-members/remove-project-member"}]},{"group":"Roles","pages":[{"title":"List Roles","openapi":"GET /api/v1/roles","href":"/api-reference/roles/list-roles"},{"title":"Create Role","openapi":"POST /api/v1/roles","href":"/api-reference/roles/create-role"},{"title":"Get Role","openapi":"GET /api/v1/roles/{id}","href":"/api-reference/roles/get-role"},{"title":"Update Role","openapi":"PATCH /api/v1/roles/{id}","href":"/api-reference/roles/update-role"},{"title":"Delete Role","openapi":"DELETE /api/v1/roles/{id}","href":"/api-reference/roles/delete-role"}]},{"group":"Permissions","pages":[{"title":"List Permissions","openapi":"GET /api/v1/permissions","href":"/api-reference/permissions/list-permissions"}]},{"group":"API Keys","pages":[{"title":"List API Keys","openapi":"GET /api/v1/api-keys","href":"/api-reference/api-keys/list-api-keys"},{"title":"Create API Key","openapi":"POST /api/v1/api-keys","href":"/api-reference/api-keys/create-api-key"},{"title":"Get API Key","openapi":"GET /api/v1/api-keys/{id}","href":"/api-reference/api-keys/get-api-key"},{"title":"Update API Key","openapi":"PATCH /api/v1/api-keys/{id}","href":"/api-reference/api-keys/update-api-key"},{"title":"Revoke API Key","openapi":"DELETE /api/v1/api-keys/{id}","href":"/api-reference/api-keys/revoke-api-key"},{"title":"Regenerate API Key","openapi":"POST /api/v1/api-keys/{id}/regenerate","href":"/api-reference/api-keys/regenerate-api-key"}]},{"group":"Invitations","pages":[{"title":"Create Account Invitation","openapi":"POST /api/v1/invitations","href":"/api-reference/invitations/create-account-invitation"},{"title":"Create Project Invitation","openapi":"POST /api/v1/projects/{id}/invitations","href":"/api-reference/invitations/create-project-invitation"},{"title":"Cancel Invitation","openapi":"DELETE /api/v1/invitations/{id}","href":"/api-reference/invitations/cancel-invitation"}]}]}]},{"group":"CLI","pages":[{"title":"Raff CLI","href":"/reference/cli/introduction"},{"title":"Installing raff","href":"/reference/cli/install"},{"title":"raff configure","href":"/reference/cli/configure"},{"title":"raff vm","href":"/reference/cli/vm"},{"title":"raff kubernetes","href":"/reference/cli/kubernetes"},{"title":"raff database","href":"/reference/cli/database"},{"title":"raff apps","href":"/reference/cli/app"},{"title":"raff volume","href":"/reference/cli/volume"},{"title":"raff snapshot","href":"/reference/cli/snapshot"},{"title":"raff backup","href":"/reference/cli/backup"},{"title":"raff vpc","href":"/reference/cli/vpc"},{"title":"raff ip","href":"/reference/cli/ip"},{"title":"raff security-group","href":"/reference/cli/security-group"},{"title":"raff tag","href":"/reference/cli/tag"},{"title":"raff ssh-key","href":"/reference/cli/ssh-key"},{"title":"raff api-key","href":"/reference/cli/api-key"},{"title":"raff project","href":"/reference/cli/project"},{"title":"raff member","href":"/reference/cli/member"},{"title":"raff role","href":"/reference/cli/role"},{"title":"raff permission","href":"/reference/cli/permission"},{"title":"raff invitation","href":"/reference/cli/invitation"},{"title":"raff region","href":"/reference/cli/region"},{"title":"raff template","href":"/reference/cli/template"},{"title":"raff pricing","href":"/reference/cli/pricing"}]},{"group":"Terraform","pages":[{"title":"Raff Terraform Provider","href":"/reference/terraform/introduction"},{"title":"Install the Raff Terraform Provider","href":"/reference/terraform/install"},{"title":"raff_project","href":"/reference/terraform/raff_project"},{"title":"raff_vm","href":"/reference/terraform/raff_vm"},{"title":"raff_volume","href":"/reference/terraform/raff_volume"},{"title":"raff_snapshot","href":"/reference/terraform/raff_snapshot"},{"title":"raff_backup","href":"/reference/terraform/raff_backup"},{"title":"raff_backup_schedule","href":"/reference/terraform/raff_backup_schedule"},{"title":"raff_vpc","href":"/reference/terraform/raff_vpc"},{"title":"raff_ip","href":"/reference/terraform/raff_ip"},{"title":"raff_security_group","href":"/reference/terraform/raff_security_group"},{"title":"raff_tag","href":"/reference/terraform/raff_tag"},{"title":"raff_ssh_key","href":"/reference/terraform/raff_ssh_key"},{"title":"raff_api_key","href":"/reference/terraform/raff_api_key"},{"title":"raff_role","href":"/reference/terraform/raff_role"},{"title":"raff_member","href":"/reference/terraform/raff_member"},{"title":"raff_project_member","href":"/reference/terraform/raff_project_member"},{"title":"raff_k8s_cluster","href":"/reference/terraform/raff_k8s_cluster"},{"title":"raff_k8s_node_pool","href":"/reference/terraform/raff_k8s_node_pool"},{"title":"raff_database","href":"/reference/terraform/raff_database"},{"title":"raff_database_user","href":"/reference/terraform/raff_database_user"},{"title":"raff_app_service","href":"/reference/terraform/raff_app_service"},{"title":"raff_app_custom_domain","href":"/reference/terraform/raff_app_custom_domain"},{"title":"raff_app_database_link","href":"/reference/terraform/raff_app_database_link"},{"title":"Catalog data sources","href":"/reference/terraform/data-sources"}]}]}]},"basePath":"","title":"Set the maintenance window - Raff","deploymentId":"dpl_HZVV42MMRSo9WnNHfTGZvby5jph9","buildId":"dpl_HZVV42MMRSo9WnNHfTGZvby5jph9","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-BuieBNTB.js","snippetPresets-alIv9Yoc.js","utils-BS41p-Nj.js","style-to-object-BY3JEAdk.js","utils-D0Za9LU_.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-Lx7TZ5XR.js","conditional-requirements-CFM0id0Q.js","cloneDeep-4e5CS5ZI.js","_Uint8Array-B2-W7EM3.js","isObject-FP1Yky1u.js","ApiExamples-sCe6z2hN.js","usePlaygroundInputsStore-cU_dFE5n.js","shallow-BwNCr__O.js","isEqual-Cnvzqd4L.js","CodeSnippets-CMIr49P8.js","CodeSnippet-BC-bKzyy.js","use-playground-group-access-c3bgmn-x.js","Page-Acw_JRP6.js","api-description-markdown-1o8U1kkQ.js","DynamicMarkdown-CvOkzads.js","SectionHeading-CJ97Kdt-.js","MethodPill-DynWltjQ.js","getPastedJson-CBCnXiWl.js","Check2Icon-CPHq_WNu.js","axios-CsQoIw0U.js","Markdown-4tjIF-hK.js","AssistantPageLink-BcChI7L3.js","dist-MIf_HGLZ.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}