Mutation

update_folder_slack_channels

Updates information about Slack notifications for a specific folder.

Input Fields

folder_id(): ID!
The unique identifier of the folder that you want to update the Slack notifications for.
A list of the Slack recipients that you want to use for scans of the sites in the folder you are updating.

Return Fields

folder(): Folder!
The updated folder.

Example

Query
mutation UpdateFolderSlackChannels($input: UpdateFolderSlackChannelsInput!) {
  update_folder_slack_channels(input: $input) {
    folder {
      id
      slack_channels {
        id
        name
      }
    }
  }
}
Variables
{
  "input": {
    "folder_id": "1",
    "recipients": [
      {
        "id": "C0123456789"
      }
    ]
  }
}
Result
{
  "data": {
    "update_folder_slack_channels": {
      "folder": {
        "id": "1",
        "slack_channels": [
          {
            "id": "C0123456789",
            "name": "security-alerts"
          }
        ]
      }
    }
  }
}