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

# Update user settings



## OpenAPI

````yaml /openapi.json put /api/v1/user/settings
openapi: 3.1.0
info:
  title: HEVN API
  description: Backend API for HEVN mobile neobank
  version: 0.1.2
servers:
  - url: https://api.hevn.finance
    description: Production
security: []
paths:
  /api/v1/user/settings:
    put:
      tags:
        - User
      summary: Update user settings
      operationId: update_settings_api_v1_user_settings_put
      parameters:
        - name: x-api-key
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Api-Key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UserSettings-Input'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserSettings-Output'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    UserSettings-Input:
      properties:
        appearance:
          $ref: '#/components/schemas/AppearancePreference'
          default: system
        devMode:
          type: boolean
          title: Devmode
          default: false
        emailsTs:
          additionalProperties:
            type: string
          type: object
          title: Emailsts
        notifications:
          $ref: '#/components/schemas/NotificationsSettings'
        bankRequested:
          $ref: '#/components/schemas/BankRequestedSettings-Input'
      type: object
      title: UserSettings
      description: User settings.
    UserSettings-Output:
      properties:
        appearance:
          $ref: '#/components/schemas/AppearancePreference'
          default: system
        devMode:
          type: boolean
          title: Devmode
          default: false
        emailsTs:
          additionalProperties:
            type: string
          type: object
          title: Emailsts
        notifications:
          $ref: '#/components/schemas/NotificationsSettings'
        bankRequested:
          $ref: '#/components/schemas/BankRequestedSettings-Output'
      type: object
      title: UserSettings
      description: User settings.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    AppearancePreference:
      type: string
      enum:
        - system
        - light
        - dark
      title: AppearancePreference
      description: Appearance theme preference.
    NotificationsSettings:
      properties:
        cashFlow:
          $ref: '#/components/schemas/NotificationChannelPrefs'
        suspiciousActivity:
          $ref: '#/components/schemas/NotificationChannelPrefs'
        tasksAndApprovals:
          $ref: '#/components/schemas/NotificationChannelPrefs'
        yourSpending:
          $ref: '#/components/schemas/NotificationChannelPrefs'
        accountBalances:
          $ref: '#/components/schemas/NotificationChannelPrefs'
        accounting:
          $ref: '#/components/schemas/NotificationChannelPrefs'
        billPay:
          $ref: '#/components/schemas/NotificationChannelPrefs'
        invoicing:
          $ref: '#/components/schemas/NotificationChannelPrefs'
        collaboration:
          $ref: '#/components/schemas/NotificationChannelPrefs'
      type: object
      title: NotificationsSettings
      description: |-
        User notification preferences grouped by category.

        Categories are UI groupings over `NotificationType`. Mapping lives in
        `NOTIFICATION_TYPE_CATEGORY`. Defaults to all channels enabled.
    BankRequestedSettings-Input:
      properties:
        rails:
          $ref: '#/components/schemas/BankRequestedRails'
      type: object
      title: BankRequestedSettings
      description: User bank-rail interest settings.
    BankRequestedSettings-Output:
      properties:
        rails:
          $ref: '#/components/schemas/BankRequestedRails'
      type: object
      title: BankRequestedSettings
      description: User bank-rail interest settings.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    NotificationChannelPrefs:
      properties:
        email:
          type: boolean
          title: Email
          default: true
        push:
          type: boolean
          title: Push
          default: true
      type: object
      title: NotificationChannelPrefs
      description: Per-channel toggles for a single notification category.
    BankRequestedRails:
      properties:
        us:
          $ref: '#/components/schemas/BankRequestedRailSettings'
        swift:
          $ref: '#/components/schemas/BankRequestedRailSettings'
        eu:
          $ref: '#/components/schemas/BankRequestedRailSettings'
        uae:
          $ref: '#/components/schemas/BankRequestedRailSettings'
      type: object
      title: BankRequestedRails
      description: Rails the user is interested in opening.
    BankRequestedRailSettings:
      properties:
        pooled:
          type: boolean
          title: Pooled
          default: false
        named:
          type: boolean
          title: Named
          default: false
      type: object
      title: BankRequestedRailSettings
      description: User interest in a bank rail group.
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer
      x-default: Bearer <token>

````