> ## 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 status of all notifications

> Update the status of all notifications for the authenticated team.



## OpenAPI

````yaml post /notifications/update-all-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/update-all-status:
    post:
      tags:
        - Notifications
      summary: Update status of all notifications
      description: Update the status of all notifications for the authenticated team.
      operationId: updateAllNotificationsStatus
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateAllNotificationsStatusSchema'
      responses:
        '200':
          description: All notifications status updated successfully.
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/UpdateAllNotificationsStatusResponseSchema
components:
  schemas:
    UpdateAllNotificationsStatusSchema:
      type: object
      properties:
        status:
          type: string
          enum:
            - unread
            - read
            - archived
          description: >-
            The new status to apply to all notifications for the authenticated
            user
          example: read
      required:
        - status
    UpdateAllNotificationsStatusResponseSchema:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/NotificationSchema'
          description: Array of updated notifications
      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.