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

# Update current user metadata

> Update the metadata for the currently authenticated user. Requires a valid access token.



## OpenAPI

````yaml /swagger.json patch /v1/auth/{app_id}/current_user/meta
openapi: 3.0.1
info:
  title: Scute API
  version: v1
  description: API for managing users in Scute applications
servers:
  - url: https://{defaultHost}
    variables:
      defaultHost:
        default: api.scute.io
  - url: http://localhost:3333
    description: Development server
security:
  - apiSecret: []
    userAccess: []
paths:
  /v1/auth/{app_id}/current_user/meta:
    parameters:
      - name: app_id
        in: path
        required: true
        description: App ID
        schema:
          type: string
    patch:
      tags:
        - Session Management
      summary: Update current user metadata
      description: >-
        Update the metadata for the currently authenticated user. Requires a
        valid access token.
      operationId: updateCurrentUserMeta
      parameters: []
      responses:
        '200':
          description: successful
          content:
            application/json:
              schema:
                type: object
                properties:
                  user:
                    type: object
                    properties:
                      id:
                        type: string
                        description: App user ID
                      email:
                        type: string
                        format: email
                        description: User's email address
                      phone:
                        type: string
                        nullable: true
                        description: User's phone number
                      user_meta:
                        type: object
                        description: Updated user metadata
                      created_at:
                        type: string
                        format: date-time
                      updated_at:
                        type: string
                        format: date-time
        '400':
          description: invalid user metadata
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: User meta invalid
                  error_code:
                    type: string
                    example: user_meta_invalid
        '401':
          description: unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: Unauthorized
      security:
        - userAccess: []
components:
  securitySchemes:
    apiSecret:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: API Secret token
    userAccess:
      type: apiKey
      name: X-Authorization
      in: header
      description: User Access token

````