> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mightynetworks.com/llms.txt
> Use this file to discover all available pages before exploring further.

# updateNotification

> Mark a notification as read or unread



**mutation** `updateNotification(input: UpdateNotificationInput!): UpdateNotificationPayload`

## Arguments

**`input`**: `UpdateNotificationInput!` (required)

Parameters for UpdateNotification

## Returns

`UpdateNotificationPayload`

**`clientMutationId`**: `String`

A unique identifier for the client performing the mutation.

---

**`errors`**: `[String!]!`

---

**`notification`**: `Notification`

## Examples

```graphql Mutation
mutation UpdateNotification($input: UpdateNotificationInput!) {
  updateNotification(input: $input) {
    clientMutationId
    errors
    notification {
      avatarUrl
      community {
        abuseReports {
          __typename
        }
        ambassadorStats {
          __typename
        }
        announcements {
          __typename
        }
        assets {
          __typename
        }
        automationRuleLogs {
          __typename
        }
        automationRules {
          __typename
        }
      }
      id
      isRead
      lastActivityAt
      link
    }
  }
}
```

```json Variables
{
  "input": {
    "id": "id"
  }
}
```

```json Response
{
  "data": {
    "updateNotification": {
      "clientMutationId": "string",
      "errors": [
        "string"
      ],
      "notification": {
        "avatarUrl": "string",
        "community": {
          "abuseReports": {
            "__typename": "AbuseReportConnection"
          },
          "ambassadorStats": {
            "__typename": "AmbassadorStats"
          },
          "announcements": {
            "__typename": "AnnouncementConnection"
          },
          "assets": {
            "__typename": "AssetConnection"
          },
          "automationRuleLogs": [
            {
              "__typename": "AutomationRuleLogEntry"
            }
          ],
          "automationRules": {
            "__typename": "AutomationRuleConnection"
          }
        },
        "id": "id",
        "isRead": true,
        "lastActivityAt": "value",
        "link": "string"
      }
    }
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.