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

# Update a notification preference

> Turns In-app or Email on or off for one category, for your account. The `payment_subscription` category is locked and can't be changed.




## OpenAPI

````yaml /openapi/notifications.yaml patch /user/notification-preferences
openapi: 3.1.0
info:
  title: Connie Notifications API
  version: 1.0.0
  description: >
    Endpoints the Connie web app uses for notifications. They authenticate with
    your signed-in browser session — see
    https://docs.connie.ai/api-reference/authentication. These are the app's own
    endpoints and can change when the app changes.
servers:
  - url: https://connie.ai/api
security:
  - sessionCookie: []
tags:
  - name: Notifications
    description: The notifications behind the bell in the sidebar.
  - name: Preferences
    description: Which events reach you in the app and by email.
paths:
  /user/notification-preferences:
    patch:
      tags:
        - Preferences
      summary: Update a notification preference
      description: >
        Turns In-app or Email on or off for one category, for your account. The
        `payment_subscription` category is locked and can't be changed.
      operationId: updateNotificationPreference
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PreferenceUpdate'
            example:
              category: workflow_failures
              email_enabled: false
      responses:
        '200':
          $ref: '#/components/responses/Success'
        '400':
          description: '`category` is missing or not a known category.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          description: >-
            The category is locked: "This notification category cannot be
            disabled."
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    PreferenceUpdate:
      type: object
      required:
        - category
      description: Send at least one of `bell_enabled` and `email_enabled`.
      properties:
        category:
          $ref: '#/components/schemas/NotificationCategory'
        bell_enabled:
          type: boolean
        email_enabled:
          type: boolean
    Error:
      type: object
      properties:
        error:
          type: string
          description: A readable message.
        code:
          type: string
          description: >-
            A machine-readable code such as `UNAUTHORIZED`, `FORBIDDEN` or
            `NOT_FOUND`, when the route sets one.
    NotificationCategory:
      type: string
      description: >
        An event category from Settings > Notifications. Some are reserved and
        nothing sends them yet, such as the page sync categories.
      enum:
        - payment_subscription
        - credit_warnings
        - member_joined
        - role_changes
        - workflow_failures
        - workflow_completions
        - approval_tasks
        - schedule_paused
        - inbox_disconnections
        - inbox_scheduled_failures
        - tasks_assigned
        - tasks_due_overdue
        - tasks_daily_digest
        - mentions
        - page_sync_failures
        - page_sync_completions
        - page_connector_reconnect
        - calls_recording_failures
        - ai_long_task_completions
        - ai_browser_task_results
        - connectors_disconnected
        - connectors_expiring
        - connectors_scope_change
        - connectors_reconnect_failed
        - connectors_mcp_unreachable
  responses:
    Success:
      description: Saved.
      content:
        application/json:
          schema:
            type: object
            properties:
              success:
                type: boolean
                const: true
    Unauthorized:
      description: No valid session, or the session has expired (`SESSION_EXPIRED`).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    sessionCookie:
      type: apiKey
      in: header
      name: Cookie
      description: >-
        The full Cookie header copied from a signed-in connie.ai browser
        request. See the Authentication page.

````

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