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

# updateUserNotifications

> Update user notification settings.



## OpenAPI

````yaml /openapi.yaml post /updateUserNotifications
openapi: 3.1.0
info:
  title: AlphaInsider
  version: '1.0'
  description: >-
    The official API and websocket documentation for
    [AlphaInsider.com](https://alphainsider.com/)
servers:
  - url: https://alphainsider.com/api
security: []
tags:
  - name: Introduction
  - name: Authentication
  - name: Users
  - name: Strategies
  - name: Subscriptions
  - name: Payments
  - name: Withdrawals
  - name: Timelines
  - name: Stocks
  - name: Trades
  - name: Webhooks
  - name: Bots
  - name: Websockets
paths:
  /updateUserNotifications:
    post:
      tags:
        - Users
      summary: updateUserNotifications
      description: Update user notification settings.
      operationId: updateUserNotifications
      parameters:
        - $ref: '#/components/parameters/api_token'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - notifications
              properties:
                notifications:
                  type: array
                  description: Array of notification settings.
                  items:
                    type: string
                    enum:
                      - subscription
                      - like
                      - subscription_email
                      - new_features_email
                      - payment_complete_email
      responses:
        '200':
          description: Request was successful.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    $ref: '#/components/schemas/success'
                  response:
                    type: object
                    description: >-
                      Endpoint-specific response payload, or an error message
                      when `success` is false.
                    properties:
                      user_id:
                        $ref: '#/components/schemas/user_id'
                      email:
                        type: string
                        description: User email address.
                      info:
                        type: object
                        description: Profile information object.
                        properties:
                          bio:
                            type: string
                            description: User profile biography.
                          x:
                            type: string
                            description: X/Twitter profile URL.
                          website:
                            type: string
                            description: Website URL.
                          youtube:
                            type: string
                            description: YouTube profile URL.
                          telegram:
                            type: string
                            description: Telegram profile URL.
                      commission:
                        type: integer
                        description: >-
                          User commission percentage or amount as returned by
                          AlphaInsider.
                      notifications:
                        type: array
                        description: Enabled notification types.
                        items:
                          type: string
                          enum:
                            - subscription
                            - like
                            - subscription_email
                            - new_features_email
                            - payment_complete_email
                      payments_enabled:
                        type: boolean
                        description: Whether payments are enabled for the user.
                      verified:
                        type: boolean
                        description: Whether the user is verified.
                      ref_id:
                        type: string
                        description: Referral identifier.
                      updated_at:
                        $ref: '#/components/schemas/updated_at'
                      created_at:
                        $ref: '#/components/schemas/created_at'
              examples:
                '200':
                  value:
                    success: true
                    response:
                      user_id: user_1
                      email: test@email.com
                      info:
                        bio: Test Bio
                        x: ''
                        website: ''
                        youtube: ''
                        telegram: ''
                      commission: 70
                      notifications:
                        - like
                        - subscription_email
                        - new_features_email
                      payments_enabled: true
                      verified: true
                      ref_id: u7OFKFKKR4ItSdgfzYP3I
                      updated_at: '2024-10-22T20:30:44.688Z'
                      created_at: '2024-08-30T13:40:27.343Z'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
components:
  parameters:
    api_token:
      in: header
      name: Authorization
      description: User API token.
      required: true
      schema:
        type: string
        format: JWT
  schemas:
    success:
      type: boolean
      description: True when the request succeeded.
    user_id:
      type: string
      description: AlphaInsider user identifier.
    updated_at:
      type: string
      format: date-time
      description: Last update timestamp.
    created_at:
      type: string
      format: date-time
      description: Creation timestamp.
  responses:
    '400':
      description: Request failed.
      content:
        application/json:
          schema:
            type: object
            properties:
              success:
                type: boolean
                description: False when the request failed.
              response:
                type: string
                description: Error message.
          examples:
            '400':
              value:
                success: false
                response: Request failed.
    '401':
      description: Authentication failed.
      content:
        application/json:
          schema:
            type: object
            properties:
              success:
                type: boolean
                description: False when the request failed.
              response:
                type: string
                description: Error message.
          examples:
            '401':
              value:
                success: false
                response: Authentication failed.

````