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

# Update the authenticated end user

> Self-scoped user token only. Writable fields are phone, avatar_id, and profile metadata. email, person_id, and last_login_at are rejected. Changing an email requires OTP verification.



## OpenAPI

````yaml patch /v1/users/me
openapi: 3.1.0
info:
  title: One of None API
  version: 1.0.0
  description: >-
    The One of None API manages product collections, registrations, short URLs,
    team operations, and rewards used by storefront integrations including
    Shopify discounts and redemption flows.
servers:
  - url: https://api.oneofnone.io
security:
  - ApiKeyAuth: []
paths:
  /v1/users/me:
    patch:
      summary: Update the authenticated end user
      description: >-
        Self-scoped user token only. Writable fields are phone, avatar_id, and
        profile metadata. email, person_id, and last_login_at are rejected.
        Changing an email requires OTP verification.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateMeBody'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserResponse'
        '400':
          description: Email, person_id, and last_login_at are not writable here
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericErrorResponse'
        '403':
          description: Self-scoped user token required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericErrorResponse'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    UpdateMeBody:
      type: object
      properties:
        phone:
          type: string
        avatar_id:
          type:
            - string
            - 'null'
          format: uuid
        metadata:
          type: object
          properties:
            firstName:
              type: string
            lastName:
              type: string
            location:
              type: string
            bio:
              type: string
            website:
              type: string
            socialLinks:
              type: array
              items:
                type: object
                properties:
                  type:
                    type: string
                  url:
                    type: string
                required:
                  - type
                  - url
      additionalProperties: false
    UserResponse:
      type: object
      properties:
        id:
          type: string
        email:
          type: string
        phone:
          type:
            - string
            - 'null'
        metadata:
          type:
            - object
            - 'null'
          additionalProperties: {}
        avatar:
          type:
            - object
            - 'null'
          properties:
            url:
              type:
                - string
                - 'null'
        app_id:
          type:
            - number
            - 'null'
        team_id:
          type:
            - string
            - 'null'
        last_login_at:
          type:
            - string
            - 'null'
        login_count:
          type:
            - number
            - 'null'
        person_id:
          type:
            - string
            - 'null'
          format: uuid
        created_at:
          type: string
        updated_at:
          type:
            - string
            - 'null'
      required:
        - id
        - email
        - created_at
    GenericErrorResponse:
      type: object
      properties:
        message:
          type: string
        code:
          type: string
        details:
          type: object
          additionalProperties: {}
      required:
        - message
        - code
      additionalProperties: {}
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````

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