Mutation

update_site_scan_configurations

Updates the scan configurations for a given site.

Arguments

input: UpdateSiteScanConfigurationsInput!

The fields used to specify which site you want update and what its new scan configurations should be.


Input Fields

id(): ID!
The unique identifier of the site whose scan configurations you want to update.
scan_configuration_ids(): [ID!]
A list of the scan configurations that you want to use for scans of the site that you are updating.

Return Fields

site(): Site!
The updated site.

Example

Query
mutation UpdateSiteScanConfigurations($input: UpdateSiteScanConfigurationsInput!) {
  update_site_scan_configurations(input: $input) {
    site {
            id
      name
      parent_id
      ephemeral
      scope_v2 {
        start_urls
        in_scope_url_prefixes
        out_of_scope_url_prefixes
        protocol_options
      }
      scan_configurations {
        id
      }
      extensions {
        id
      }
      application_logins {
        login_credentials {
          id
          label
          username
          password
        }
        recorded_logins {
          id
          label
          script
        }
      }
      email_recipients {
        id
        email
      }
      agent_pool {
        id
        name
        agents {
          id
          name
        }
      }
      slack_channels {
        id
        name
      }
      settings {
          request_headers {
              id
              name
              value
              scope_prefix
          }
          request_cookies {
              id
              name
              value
              scope_prefix
          }
      }

    }
  }
}
Variables
{
  "input": {
    "id": "42",
    "scan_configuration_ids": [
      "fc5b5ab2-cde5-41bc-ac62-fab3502ae38e"
    ]
  }
}