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

# Update notification preferences

> Updates the user notification preferences



## OpenAPI

````yaml /api-reference/openapi.json patch /auth/notifications
openapi: 3.0.0
info:
  title: EngageFabric API
  description: >-
    EngageFabric is a multi-tenant SaaS gamification framework. This API
    provides endpoints for managing players, tracking events, quests,
    adventures, leaderboards, lobbies, and real-time features.
  version: 1.0.0
  contact:
    name: EngageFabric Support
    url: https://engagefabric.com
    email: support@engagefabric.com
  license:
    name: Proprietary
    url: https://engagefabric.com/terms
servers:
  - url: https://api.engagefabric.com
    description: Production
  - url: http://localhost:3000
    description: Development
security: []
tags:
  - name: auth
    description: Authentication endpoints
  - name: tenants
    description: Tenant management
  - name: projects
    description: Project management
  - name: players
    description: Player management and game state
  - name: events
    description: Event ingestion and tracking
  - name: quests
    description: Quest management and progress
  - name: adventures
    description: Adventure/season management
  - name: leaderboards
    description: Leaderboard rankings
  - name: lobbies
    description: Multiplayer lobby management
  - name: chat
    description: Real-time chat
  - name: rules
    description: Rules engine configuration
paths:
  /auth/notifications:
    patch:
      tags:
        - auth
      summary: Update notification preferences
      description: Updates the user notification preferences
      operationId: AuthController_updateNotificationPreferences
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateNotificationPreferencesDto'
      responses:
        '200':
          description: Notification preferences updated successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotificationPreferencesResponseDto'
        '401':
          description: Not authenticated
      security:
        - JWT: []
components:
  schemas:
    UpdateNotificationPreferencesDto:
      type: object
      properties:
        emailAlerts:
          type: boolean
          description: Receive important updates via email
          example: true
        weeklyDigest:
          type: boolean
          description: Get a weekly summary of project activity
          example: true
        playerActivity:
          type: boolean
          description: Get notified when players reach milestones
          example: false
        questCompletions:
          type: boolean
          description: Receive alerts when quests are completed
          example: true
        securityAlerts:
          type: boolean
          description: Important security notifications (recommended)
          example: true
    NotificationPreferencesResponseDto:
      type: object
      properties:
        id:
          type: string
          description: Notification preferences ID
        emailAlerts:
          type: boolean
          description: Receive important updates via email
        weeklyDigest:
          type: boolean
          description: Get a weekly summary of project activity
        playerActivity:
          type: boolean
          description: Get notified when players reach milestones
        questCompletions:
          type: boolean
          description: Receive alerts when quests are completed
        securityAlerts:
          type: boolean
          description: Important security notifications
        createdAt:
          format: date-time
          type: string
          description: Created timestamp
        updatedAt:
          format: date-time
          type: string
          description: Updated timestamp
      required:
        - id
        - emailAlerts
        - weeklyDigest
        - playerActivity
        - questCompletions
        - securityAlerts
        - createdAt
        - updatedAt
  securitySchemes:
    JWT:
      scheme: bearer
      bearerFormat: JWT
      type: http
      description: JWT token for admin console authentication

````