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

# Update the current user

> Update the current user for the authenticated team.



## OpenAPI

````yaml patch /users/me
openapi: 3.1.0
info:
  version: 0.0.1
  title: Abacus API
  description: Abacus is the operating system for Merchant Cash Advance businesses.
  contact:
    name: Abacus Support
    email: support@abacuslabs.co
    url: https://abacuslabs.co
  license:
    name: AGPL-3.0 license
    url: https://github.com/Suphian/abacus/blob/main/LICENSE
servers:
  - url: https://api.abacuslabs.co
    description: Production API
security:
  - oauth2: []
  - token: []
paths:
  /users/me:
    patch:
      tags:
        - Users
      summary: Update the current user
      description: Update the current user for the authenticated team.
      operationId: updateCurrentUser
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                fullName:
                  type: string
                  minLength: 2
                  maxLength: 32
                  description: Full name of the user. Must be between 2 and 32 characters
                  example: Jane Doe
                teamId:
                  type: string
                  description: Unique identifier of the team the user belongs to
                  example: team-abc123
                email:
                  type: string
                  format: email
                  description: Email address of the user
                  example: jane.doe@acme.com
                avatarUrl:
                  type: string
                  format: uri
                  description: URL to the user's avatar image
                  example: >-
                    https://example.supabase.co/storage/v1/object/public/avatars/user.jpg
                locale:
                  type: string
                  description: >-
                    User's preferred locale for internationalization (language
                    and region)
                  example: en-US
                weekStartsOnMonday:
                  type: boolean
                  description: >-
                    Whether the user's calendar week starts on Monday (true) or
                    Sunday (false)
                  example: true
                timezone:
                  type: string
                  description: User's timezone identifier in IANA Time Zone Database format
                  example: America/New_York
                timezoneAutoSync:
                  type: boolean
                  description: Whether to automatically sync timezone with browser timezone
                  example: true
                timeFormat:
                  type: number
                  description: >-
                    User's preferred time format: 12 for 12-hour format, 24 for
                    24-hour format
                  example: 24
                dateFormat:
                  type: string
                  enum:
                    - dd/MM/yyyy
                    - MM/dd/yyyy
                    - yyyy-MM-dd
                    - dd.MM.yyyy
                  description: >-
                    User's preferred date format. Available options:
                    'dd/MM/yyyy', 'MM/dd/yyyy', 'yyyy-MM-dd', 'dd.MM.yyyy'
                  example: yyyy-MM-dd
                  x-speakeasy-enums:
                    - ddSlashMMSlashyyyy
                    - MMSlashddSlashyyyy
                    - yyyyDashMMDashdd
                    - ddDotMMDotyyyy
                jobTitle:
                  type: string
                  maxLength: 100
                  description: User's job title or role within the organization
                  example: VP of Collections
                department:
                  type: string
                  maxLength: 100
                  description: User's department within the organization
                  example: Underwriting
                phone:
                  type: string
                  maxLength: 30
                  description: User's direct phone number
                  example: (555) 123-4567
      responses:
        '200':
          description: The updated user
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    format: uuid
                    description: Unique identifier of the user
                    example: 123e4567-e89b-12d3-a456-426614174000
                  fullName:
                    type: string
                    description: Full name of the user
                    example: Jane Doe
                  email:
                    type: string
                    format: email
                    description: Email address of the user
                    example: jane.doe@acme.com
                  avatarUrl:
                    type: string
                    nullable: true
                    format: uri
                    description: URL to the user's avatar image
                    example: >-
                      https://example.supabase.co/storage/v1/object/public/avatars/user.jpg
                  locale:
                    type: string
                    nullable: true
                    description: >-
                      User's preferred locale for internationalization (language
                      and region)
                    example: en-US
                  weekStartsOnMonday:
                    type: boolean
                    nullable: true
                    description: >-
                      Whether the user's calendar week starts on Monday (true)
                      or Sunday (false)
                    example: true
                  timezone:
                    type: string
                    nullable: true
                    description: >-
                      User's timezone identifier in IANA Time Zone Database
                      format
                    example: America/New_York
                  timezoneAutoSync:
                    type: boolean
                    nullable: true
                    description: >-
                      Whether to automatically sync timezone with browser
                      timezone
                    example: true
                  timeFormat:
                    type: number
                    nullable: true
                    description: >-
                      User's preferred time format: 12 for 12-hour format, 24
                      for 24-hour format
                    example: 24
                  dateFormat:
                    type: string
                    nullable: true
                    enum:
                      - dd/MM/yyyy
                      - MM/dd/yyyy
                      - yyyy-MM-dd
                      - dd.MM.yyyy
                      - null
                    description: >-
                      User's preferred date format. Available options:
                      'dd/MM/yyyy', 'MM/dd/yyyy', 'yyyy-MM-dd', 'dd.MM.yyyy'
                    example: yyyy-MM-dd
                    x-speakeasy-enums:
                      - ddSlashMMSlashyyyy
                      - MMSlashddSlashyyyy
                      - yyyyDashMMDashdd
                      - ddDotMMDotyyyy
                  fileKey:
                    type: string
                    nullable: true
                    description: >-
                      Team file key (JWT token) for proxy/download access to
                      team files. This compact JWT token contains the team ID
                      and is shared by all team members. Use this token as the
                      `fk` query parameter when accessing file endpoints (proxy,
                      download). The token is team-scoped and provides access to
                      files belonging to the user's team. Returns null if the
                      user has no team.
                    example: >-
                      eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0ZWFtSWQiOiIxMjM0NTY3OC05YWJjLWRlZmctMTIzNC01Njc4OTBhYmNkZWYifQ.signature
                  team:
                    type: object
                    nullable: true
                    properties:
                      id:
                        type: string
                        format: uuid
                        description: Unique identifier of the team
                        example: 123e4567-e89b-12d3-a456-426614174000
                      name:
                        type: string
                        description: Name of the team or organization
                        example: Acme Corporation
                      logoUrl:
                        type: string
                        format: uri
                        description: URL to the team's logo image
                        example: >-
                          https://example.supabase.co/storage/v1/object/public/avatars/logo.png
                      plan:
                        type: string
                        description: Current subscription plan of the team
                        example: pro
                    required:
                      - id
                      - name
                      - logoUrl
                      - plan
                    description: Team information that the user belongs to
                required:
                  - id
                  - fullName
                  - email
                  - avatarUrl
                  - locale
                  - weekStartsOnMonday
                  - timezone
                  - timezoneAutoSync
                  - timeFormat
                  - dateFormat
                  - fileKey
                  - team
components:
  securitySchemes:
    token:
      type: http
      scheme: bearer
      description: Default authentication mechanism
      x-speakeasy-example: ABACUS_API_KEY

````

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