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

# Mark notifications as read

Opigno Enterprise API provides mutations to update the read status of notifications for the current user.

## Single notification

To mark a single notification as read, `readNotification` mutation should be executed. It has one required incoming argument - `notificationId`.
Use this mutation to indicate that a notification has been viewed, ensuring it no longer appears as unread for the current API user.
Response returns the updated [`Notification`](/OpignoEnterpriseAPI/Notifications/Notification) object.

<CodeGroup>
  ```filename GraphQL theme={null}
  mutation readNotification {
    readNotification(notificationId: 1) {
      response {
        id
        status
      }
      errors
    }
  }
  ```

  ```File Query result [expandable] theme={null}
  {
    "data": {
      "readNotification": {
        "response" {
          "id": 1,
          "status": "READ"
        }
        "errors": []
      }
    }
  }
  ```
</CodeGroup>

## All notifications

To mark all notifications related to the current API user as read, use mutation `readAllNotifications`.
If the mutation executed without any errors, a boolean value will be returned as a response indicating the execution status.

<CodeGroup>
  ```filename GraphQL theme={null}
  mutation readAllNotifications {
    readNotification {
      response
      errors
    }
  }
  ```

  ```File Query result [expandable] theme={null}
  {
    "data": {
      "readNotification": {
        "response": true
        "errors": [],
      }
    }
  }
  ```
</CodeGroup>
