Mutation

create_folder_email_recipient

Adds a new recipient to the list of people who receive scan completion reports for a given folder.

Arguments

input: CreateFolderEmailRecipientInput!

The field used to create a new recipient of scan completion reports.


Input Fields

folder_id(): ID!
The unique identifier for the folder for which you want to add a new recipient of scan completion reports.
email_recipient(): EmailRecipientInput!
The email address that you want to send scan completion reports to.

Return Fields

email_recipient(): EmailRecipient
The new email recipient.

Example

Query
mutation CreateFolderEmailRecipient($input: CreateFolderEmailRecipientInput!) {
  create_folder_email_recipient(input: $input) {
    email_recipient {
      id
      email
    }
  }
}
Variables
{
  "input": {
    "email_recipient": {
      "email": "security-team@example.com"
    },
    "folder_id": "1"
  }
}
Result
{
  "data": {
    "create_folder_email_recipient": {
      "email_recipient": {
        "id": "1",
        "email": "security-team@example.com"
      }
    }
  }
}