---
title: "Set auto-upgrade settings"
method: PATCH
path: "/api/v1/upgrade/auto-upgrade"
tags: ["Upgrade"]
---

# Set auto-upgrade settings

`PATCH /api/v1/upgrade/auto-upgrade`

Configure auto-upgrade settings.

## Request body

- UpdateAutoUpgradeConfigRequest
  - `enabled` boolean, required
  - `schedule` AutoUpgradeSchedule
    - `schedule_type` union
      - object
        - `daily` DailySchedule, required
          - `time` UpgradeTime
            - `hours` integer, required — Hours of day in 24 hour format. Must be from 0 to 23.
            - `minutes` integer, required — Minutes of hour of day. Must be from 0 to 59.
            - `seconds` integer, nullable — Seconds of minutes of the time. Can be from 0 to 59.
      - object
        - `weekly` WeeklySchedule, required
          - `day_of_week` integer, nullable
          - `time` UpgradeTime
            - `hours` integer, required — Hours of day in 24 hour format. Must be from 0 to 23.
            - `minutes` integer, required — Minutes of hour of day. Must be from 0 to 59.
            - `seconds` integer, nullable — Seconds of minutes of the time. Can be from 0 to 59.
      - object
        - `monthly` MonthlySchedule, required
          - `day_of_month` integer, nullable — Artificially limited to 1-28 to cover all months
          - `time` UpgradeTime
            - `hours` integer, required — Hours of day in 24 hour format. Must be from 0 to 23.
            - `minutes` integer, required — Minutes of hour of day. Must be from 0 to 59.
            - `seconds` integer, nullable — Seconds of minutes of the time. Can be from 0 to 59.

## Response `200`

Auto-upgrade settings updated successfully

---

[API](https://skmtc.net/256foundation/apis/braiins-os-public-rest-api.md) · [All operations](https://skmtc.net/256foundation/apis/braiins-os-public-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/256foundation/braiins-os-public-rest-api/revisions/d341c8e1d506/schema)
