Mutation

update_site_slack_channels

Updates information about Slack notifications for a specific site.

Input Fields

site_id(): ID!
The unique identifier of the site whose Slack notifications you want to update.
recipients(): [SlackRecipientInput!]
A list of the Slack recipients that you want to use for scans of the site that you are updating.

Return Fields

site(): Site!
The updated site.

Example

Query
mutation UpdateSiteSlackChannels($input: UpdateSiteSlackChannelsInput!) {
  update_site_slack_channels(input: $input) {
    site {
      id
      name
      parent_id
      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
        }
      }
      ephemeral
      email_recipients {
        id
        email
      }
      agent_pool {
        id
        name
        agents {
          id
          name
        }
      }
      slack_channels {
        id
        name
      }
    }
  }
}
Variables
{
  "input": {
    "site_id": 15,
    "recipients": [
      {
        "id": "110AABC3"
      }
    ]
  }
}