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

# Update Me

> Update the authenticated user's username and/or email. Requires current password.



## OpenAPI

````yaml /api-reference/openapi.json patch /auth/me
openapi: 3.1.0
info:
  title: faces
  version: 0.101.0
servers: []
security: []
paths:
  /auth/me:
    patch:
      tags:
        - Authentication
      summary: Update Me
      description: >-
        Update the authenticated user's username and/or email. Requires current
        password.
      operationId: update_me_auth_me_patch
      parameters:
        - name: authorization
          in: header
          required: false
          schema:
            type: string
            title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateMeRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StandardResponse_MeResponse_'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    UpdateMeRequest:
      properties:
        current_password:
          type: string
          title: Current Password
        username:
          anyOf:
            - type: string
            - type: 'null'
          title: Username
        email:
          anyOf:
            - type: string
            - type: 'null'
          title: Email
      type: object
      required:
        - current_password
      title: UpdateMeRequest
    StandardResponse_MeResponse_:
      properties:
        success:
          type: boolean
          title: Success
        messages:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Messages
          default: []
        data:
          anyOf:
            - $ref: '#/components/schemas/MeResponse'
            - type: 'null'
        error:
          anyOf:
            - type: string
            - $ref: '#/components/schemas/DetailedError'
            - type: 'null'
          title: Error
        meta:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Meta
      type: object
      required:
        - success
      title: StandardResponse[MeResponse]
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    MeResponse:
      additionalProperties: true
      type: object
    DetailedError:
      properties:
        code:
          type: string
          title: Code
        message:
          type: string
          title: Message
        details:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Details
      type: object
      required:
        - code
        - message
      title: DetailedError
      description: Detailed error information.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````

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