Burp Suite User Forum

Create new post

GraphQL CreateScheduleItem

Fernández | Last updated: Sep 14, 2021 03:33PM UTC

Hello, I cannot successfully execute a query in graphql to create a schedule on a specific site (tested with Insomnia): mutation CreateScheduleItem($input: CreateScheduleItemInput!) { create_schedule_item(input: $input) { schedule_item { id } schedule { initial_run_time rrule } scan_configuration_ids } } { "input": { "site_id": "23", "schedule": { "initial_run_time": "2021-09-14T15:30:00+00:00", "rrule": "" }, "scan_configuration_ids": ["69b4540d-d51d-4c1b-993d-6005a0089c95"] } } Could you tell me the error? I don't understand the query with the examples available in the API documentation. Thanks you.

James, PortSwigger Agent | Last updated: Sep 16, 2021 12:04PM UTC

Hi Jose, Thanks for getting in touch. Please try the below, I have tested this and it is working to create a scan schedule for a site. "rrule" needs to include the schedule timings you would like and not be left empty. My example below creates a schedule for every 7 days. https://portswigger.net/burp/extensibility/enterprise/graphql-api/ScheduleInput.html mutation CreateScheduleItem($input:CreateScheduleItemInput!) { create_schedule_item(input: $input) { schedule_item { id } } } { "input": { "site_id": "23", "scan_configuration_ids": ["69b4540d-d51d-4c1b-993d-6005a0089c95"], "schedule": { "initial_run_time": "2021-09-16T11:00:00+01:00", "rrule": "FREQ=DAILY;INTERVAL=7" } } } Let us know if you need any further assistance.

You must be an existing, logged-in customer to reply to a thread. Please email us for additional support.