Hi Michael,
Can you please send me a copy of the full mutation you are sending?
I would suggest creating a site first with all the relevant information:
mutation CreateSite {
create_site(input: {name: "test", scope: {included_urls: "http://example.com"}, parent_id: "1", scan_configuration_ids: "9e67821f-6cd2-45a1-8381-c931fe2c32cd", email_recipients: {email: "test@example.com"}}) {
site {
id
parent_id
email_recipients {
email
}
scope {
included_urls
}
}
}
}
You can then use the create_schedule_item mutation to create the scan (you should see the site ID by sending the mutation above). This will be launched straight away:
mutation CreateScheduleItem {
create_schedule_item(input: {site_id: "5"}) {
schedule_item {
id
}
}
}

Michaël |
Last updated: May 21, 2020 04:55PM UTC

thanks

Michaël |
Last updated: Jun 02, 2020 03:57PM UTC

Ok thank you it works with 1 email but I cannot manage to have 2 emails