Mutation

create_site_email_recipient

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

Arguments

input: CreateSiteEmailRecipientInput!

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


Input Fields

site_id(ID!)
The unique identifier of the site for which you want to add a new recipient of scan completion reports.
email_recipient(EmailRecipientInput!)
The email address to which you want scan completion reports to be sent.

Return Fields

email_recipient(EmailRecipient)
The newly created email recipient.

Example

Query
mutation CreateSiteEmailRecipient($input: CreateSiteEmailRecipientInput!) {
  create_site_email_recipient(input: $input) {
    email_recipient {
      id
      email
    }
  }
}
Variables
{
  "input": {
    "site_id": "42",
    "email_recipient": {
      "email": "email@example.com"
    }
  }
}