Mutation
create_schedule_item
Creates a new schedule item, which exposes all of the scheduling data about a configured scan. When a scheduled scan is due to start, a Scan object is created based on the associated schedule item.
Input Fields
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 for which you want to create a schedule item.
folder_ids():
[ID!]
The list of unique identifiers of the folders for which you want to create a schedule item.
schedule():
ScheduleInput
The scheduling information for the new schedule item, such as when the scan should run and how often.
scan_configuration_ids():
[ID!]
A list all the scan configurations that you want to use for scans created from this schedule item.
verbose_debug():
Boolean
If true, running the schedule item will capture detailed logging.
Return Fields
schedule_item():
ScheduleItem!
The newly created schedule item.
Example
Query
mutation CreateScheduleItem($input: CreateScheduleItemInput!) {
create_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": {
"scan_configuration_ids": [
"11b1fb41-b670-3a84-89a3-23b12ca4f7ca"
],
"schedule": {
"description": "Scans the example site every Monday morning",
"initial_run_time": "2026-01-05T09:00:00Z",
"name": "Weekly scan",
"rrule": "FREQ=WEEKLY;INTERVAL=1;BYDAY=MO"
},
"site_ids": [
"1"
]
}
}
Result
{
"data": {
"create_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 scan",
"description": "Scans the example site every Monday morning"
},
"scan_configurations": [
{
"id": "11b1fb41-b670-3a84-89a3-23b12ca4f7ca",
"name": "Crawl strategy - fastest"
}
],
"scheduled_run_time": "2026-01-05T09:00:00.000Z"
}
}
}
}