Mutation

update_scan_freeze_window

Updates an existing Scan Freeze Window, replacing it with the new window details

Arguments

input: UpdateScanFreezeWindowInput!


Input Fields

id(): ID!
The unique identifier of the scan freeze window to update.
name(): String!
The new name of the scan freeze window.
description(): String
The new description of the scan freeze window.
active_period(): DateRangeInput
The new period during which the scan freeze window is active.
timezone(): Timezone!
The IANA time zone code for which the scan freeze window's schedule is defined for.
The new schedule of individual time slots within a week during which scans are frozen.
The new sites and folders that this scan freeze window applies to.

Return Fields

scan_freeze_window(): ScanFreezeWindow!

Example

Query
mutation UpdateScanFreezeWindow($input: UpdateScanFreezeWindowInput!) {
  update_scan_freeze_window(input: $input) {
    scan_freeze_window {
      id
      name
      description
      enabled
      timezone
      active_period {
        start_inclusive
        end_inclusive
      }
      schedule {
        time_slots {
          begin_day
          begin_time
          end_day
          end_time
        }
      }
      site_tree_selection {
        id
      }
    }
  }
}
Variables
{
  "input": {
    "active_period": {
      "end_inclusive": "2026-12-31",
      "start_inclusive": "2026-01-01"
    },
    "description": "No scans from Friday night to Monday morning while this year's upgrades are rolled out",
    "id": "1",
    "name": "Long weekend maintenance",
    "schedule": {
      "time_slots": [
        {
          "begin_day": "fri",
          "begin_time": "22:00",
          "end_day": "mon",
          "end_time": "06:00"
        }
      ]
    },
    "site_tree_selection": [
      {
        "id": "1"
      }
    ],
    "timezone": "Europe/London"
  }
}
Result
{
  "data": {
    "update_scan_freeze_window": {
      "scan_freeze_window": {
        "id": "1",
        "name": "Long weekend maintenance",
        "description": "No scans from Friday night to Monday morning while this year's upgrades are rolled out",
        "enabled": true,
        "timezone": "Europe/London",
        "active_period": {
          "start_inclusive": "2026-01-01",
          "end_inclusive": "2026-12-31"
        },
        "schedule": {
          "time_slots": [
            {
              "begin_day": "fri",
              "begin_time": "22:00",
              "end_day": "mon",
              "end_time": "06:00"
            }
          ]
        },
        "site_tree_selection": [
          {
            "id": "1"
          }
        ]
      }
    }
  }
}