Mutation

update_site_email_recipient

Updates the email address of an existing recipient of scan completion reports.

Arguments

input: UpdateSiteEmailRecipientInput!

The fields used to specify the email recipient that you want to update, and what their new email address should be.


Input Fields

id(): ID!
The unique identifier of the email recipient that you want to update.
email(): String!
The new email address to which scan completion reports should be sent.

Return Fields

email_recipient(): EmailRecipient
The updated email recipient.

Example

Query
mutation UpdateSiteEmailRecipient($input: UpdateSiteEmailRecipientInput!) {
  update_site_email_recipient(input: $input) {
    email_recipient {
      id
      email
    }
  }
}
Variables
{
  "input": {
    "email": "email@example.com",
    "id": "5"
  }
}