Mutation

update_schedule_item

Updates an existing schedule item. For example, you can change the date and time when a scan is due to start or how often a recurring scan should run.

Arguments

input: UpdateScheduleItemInput!

The fields used to specify which schedule item you want to update, and what changes you want to make.


Input Fields

id(): ID!
The unique identifier of the schedule item that you want to update.
site_id(): ID
Deprecated: Use the site_ids field instead, as that supports scheduling scans for multiple sites with the same schedule
The unique identifier of the site for which you want to create a schedule item.
site_ids(): [ID!]
The list of unique identifiers of the sites that you want to associate with the schedule item.
folder_ids(): [ID!]
The list of unique identifiers of the folders that you want to associate with the schedule item.
schedule(): UpdateScheduleInput
The scheduling information for the schedule item that you want to update, such as when the scan should run and how often.
scan_configuration_ids(): [ID!]
A list of scan configurations that you want to use for scans created from this schedule item.
verbose_debug(): Boolean
Whether verbose debug will be produced for the scan.

Return Fields

schedule_item(): ScheduleItem!
The updated schedule item.

Example

Query
mutation UpdateScheduleItem($input: UpdateScheduleItemInput!) {
  update_schedule_item(input: $input) {
    schedule_item {
      id
      sites {
        id
        name
      }
      schedule {
        initial_run_time
        rrule
        name
        description
      }
      scan_configurations {
        id
        name
      }
      scheduled_run_time
    }
  }
}
Variables
{
  "input": {
    "id": "1",
    "scan_configuration_ids": [
      "3582b1a9-ae92-3145-99cc-b6fa2682070a"
    ],
    "schedule": {
      "description": "Scans the example site every Monday morning, crawling for at most 30 minutes",
      "description_is_set": true,
      "name": "Weekly quick scan",
      "name_is_set": true
    }
  }
}
Result
{
  "data": {
    "update_schedule_item": {
      "schedule_item": {
        "id": "1",
        "sites": [
          {
            "id": "1",
            "name": "Example site"
          }
        ],
        "schedule": {
          "initial_run_time": "2026-01-05T09:00:00.000Z",
          "rrule": "FREQ=WEEKLY;INTERVAL=1;BYDAY=MO",
          "name": "Weekly quick scan",
          "description": "Scans the example site every Monday morning, crawling for at most 30 minutes"
        },
        "scan_configurations": [
          {
            "id": "3582b1a9-ae92-3145-99cc-b6fa2682070a",
            "name": "Crawl limit - 30 minutes"
          }
        ],
        "scheduled_run_time": "2026-01-05T09:00:00.000Z"
      }
    }
  }
}