{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/acronis/main/json-schema/acronis-agent-update-settings-schema.json",
  "title": "AgentUpdateSettings",
  "description": "Configuration for automatic agent updates",
  "x-generated": "2026-10-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/acronis-agent-updates-api-openapi.yml#/components/schemas/AgentUpdateSettings",
  "type": "object",
  "properties": {
    "update_channel": {
      "type": "string",
      "enum": [
        "CURRENT",
        "STABLE"
      ],
      "description": "Update channel to use"
    },
    "automatic": {
      "type": "boolean",
      "description": "Whether updates should be applied automatically"
    },
    "maintenance_window": {
      "$ref": "#/$defs/MaintenanceWindow"
    }
  },
  "$defs": {
    "MaintenanceWindow": {
      "type": "object",
      "description": "Time window for restricting automatic updates",
      "properties": {
        "time_from": {
          "type": "string",
          "description": "Start time in HH:MM format (UTC)"
        },
        "time_to": {
          "type": "string",
          "description": "End time in HH:MM format (UTC)"
        },
        "days_of_week": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "MONDAY",
              "TUESDAY",
              "WEDNESDAY",
              "THURSDAY",
              "FRIDAY",
              "SATURDAY",
              "SUNDAY"
            ]
          },
          "description": "Days when maintenance window applies"
        }
      }
    }
  }
}