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

# Update notification status

> Update the status of a specific notification.



## OpenAPI

````yaml patch /notifications/{notificationId}/status
openapi: 3.1.0
info:
  version: 0.0.1
  title: Abacus API
  description: Abacus is the operating system for Merchant Cash Advance businesses.
  contact:
    name: Abacus Support
    email: support@abacuslabs.co
    url: https://abacuslabs.co
  license:
    name: AGPL-3.0 license
    url: https://github.com/Suphian/abacus/blob/main/LICENSE
servers:
  - url: https://api.abacuslabs.co
    description: Production API
security:
  - oauth2: []
  - token: []
paths:
  /notifications/{notificationId}/status:
    patch:
      tags:
        - Notifications
      summary: Update notification status
      description: Update the status of a specific notification.
      operationId: updateNotificationStatus
      parameters:
        - schema:
            type: string
            format: uuid
            description: The ID of the notification to update
            example: b3b6e2c2-1f2a-4e3b-9c1d-2a4b6e2c21f2
          required: true
          description: The ID of the notification to update
          in: path
          name: notificationId
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                status:
                  type: string
                  enum:
                    - unread
                    - read
                    - archived
                  description: The new status for the notification
                  example: read
              required:
                - status
      responses:
        '200':
          description: Notification status updated successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotificationResponseSchema'
components:
  schemas:
    NotificationResponseSchema:
      type: object
      properties:
        data:
          allOf:
            - $ref: '#/components/schemas/NotificationSchema'
            - description: The updated notification
      required:
        - data
    NotificationSchema:
      type: object
      properties:
        id:
          type: string
          format: uuid
          description: Unique identifier of the notification
          example: b3b6e2c2-1f2a-4e3b-9c1d-2a4b6e2c21f2
        createdAt:
          type: string
          description: ISO timestamp when the notification was created
          example: '2024-04-15T09:00:00.000Z'
        teamId:
          type: string
          format: uuid
          description: Unique identifier of the team
          example: a1b2c3d4-e5f6-7890-abcd-ef1234567890
        userId:
          type: string
          nullable: true
          format: uuid
          description: Unique identifier of the user (if applicable)
          example: c2d3e4f5-a6b7-8901-bcde-f23456789012
        type:
          type: string
          description: Type of notification
          example: transactions_created
        priority:
          type: integer
          minimum: 1
          maximum: 10
          description: >-
            Priority level of the notification (1-3 = user notifications, 4-10 =
            insights)
          example: 3
        source:
          type: string
          enum:
            - system
            - user
          description: Source of the notification
          example: system
        status:
          type: string
          enum:
            - unread
            - read
            - archived
          description: Current status of the notification
          example: unread
        metadata:
          type: object
          additionalProperties:
            nullable: true
          description: Additional metadata for the notification
          example:
            transactionCount: 5
            dateRange:
              from: '2024-04-01'
              to: '2024-04-15'
        lastUsedAt:
          type: string
          nullable: true
          description: ISO timestamp when the notification was last used by the system
          example: '2024-04-15T11:00:00.000Z'
      required:
        - id
        - createdAt
        - teamId
        - userId
        - type
        - priority
        - source
        - status
        - metadata
        - lastUsedAt
  securitySchemes:
    token:
      type: http
      scheme: bearer
      description: Default authentication mechanism
      x-speakeasy-example: ABACUS_API_KEY

````

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