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

# Update the calling user's profile

> Updates any subset of `username`, `first_name`, `last_name`, `bio`. Username changes flow through the same validators as handle claims (reserved-handle and uniqueness checks). Username collisions return `409 conflict`; reserved values return `400 handle_reserved`. Email is read-only from the auth identity record and cannot be updated here.



## OpenAPI

````yaml /openapi.json patch /profile/me
openapi: 3.1.0
info:
  title: Marfa API
  version: 4.2.0
  description: Typed data layer for structured personal data
servers: []
security: []
paths:
  /profile/me:
    patch:
      tags:
        - Profile
      summary: Update the calling user's profile
      description: >-
        Updates any subset of `username`, `first_name`, `last_name`, `bio`.
        Username changes flow through the same validators as handle claims
        (reserved-handle and uniqueness checks). Username collisions return `409
        conflict`; reserved values return `400 handle_reserved`. Email is
        read-only from the auth identity record and cannot be updated here.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                username:
                  type: string
                first_name:
                  type: string
                  nullable: true
                  maxLength: 64
                last_name:
                  type: string
                  nullable: true
                  maxLength: 64
                bio:
                  type: string
                  nullable: true
                  maxLength: 280
      responses:
        '200':
          description: Updated profile
          content:
            application/json:
              schema:
                type: object
                properties:
                  username:
                    type: string
                    nullable: true
                  first_name:
                    type: string
                    nullable: true
                  last_name:
                    type: string
                    nullable: true
                  bio:
                    type: string
                    nullable: true
                  avatar_url:
                    type: string
                  email:
                    type: string
                  email_verified:
                    type: boolean
                  created_at:
                    type: string
                  updated_at:
                    type: string
                required:
                  - username
                  - first_name
                  - last_name
                  - bio
                  - avatar_url
                  - email
                  - email_verified
                  - created_at
                  - updated_at
        '400':
          description: Invalid handle format or field length
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        enum:
                          - validation_error
                          - missing_required_field
                          - handle_reserved
                      message:
                        type: string
                      details:
                        type: object
                        additionalProperties:
                          nullable: true
                    required:
                      - code
                      - message
                required:
                  - error
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        enum:
                          - unauthorized
                      message:
                        type: string
                      details:
                        type: object
                        additionalProperties:
                          nullable: true
                    required:
                      - code
                      - message
                required:
                  - error
        '404':
          description: No profile bound to this credential
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        enum:
                          - not_found
                      message:
                        type: string
                      details:
                        type: object
                        additionalProperties:
                          nullable: true
                    required:
                      - code
                      - message
                required:
                  - error
        '409':
          description: Handle already claimed by another user
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        enum:
                          - conflict
                      message:
                        type: string
                      details:
                        type: object
                        additionalProperties:
                          nullable: true
                    required:
                      - code
                      - message
                required:
                  - error
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key or OAuth Token
      description: Pass an API key (marfa_k1_...) or OAuth access token (marfa_at_...)

````