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

# Update User Preferences

> Updates specific preferences for the authenticated user



## OpenAPI

````yaml PATCH /users/{userId}/preferences
openapi: 3.1.0
info:
  title: Tatu API
  description: API documentation for Tatu's booking and artist management system
  version: 1.0.0
servers:
  - url: http://localhost:3000/api
    description: Development server
security: []
paths:
  /users/{userId}/preferences:
    patch:
      summary: Update User Preferences
      description: Updates specific preferences for the authenticated user
      parameters:
        - name: userId
          in: path
          required: true
          schema:
            type: string
          description: The ID of the user
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PreferenceUpdateRequest'
      responses:
        '200':
          description: Preferences updated successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  updatedPreferences:
                    type: object
        '404':
          description: User not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    PreferenceUpdateRequest:
      type: object
      required:
        - path
        - value
      properties:
        path:
          type: array
          items:
            type: string
          description: Path to the nested preference property
        value:
          description: The new value for the preference
    Error:
      type: object
      required:
        - message
      properties:
        message:
          type: string

````