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
slack_channels {
id
name
}
}
}
}
Variables
{
"input": {
"recipients": [
{
"id": "C0123456789"
}
],
"site_id": "1"
}
}
Result
{
"data": {
"update_site_slack_channels": {
"site": {
"id": "1",
"slack_channels": [
{
"id": "C0123456789",
"name": "security-alerts"
}
]
}
}
}
}