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

# Update the profile

> Sets the display name and avatar URL of the signed-in user and returns the updated profile.



## OpenAPI

````yaml /api-reference/cloud-platform-openapi.json put /v1/users/me/profile
openapi: 3.1.0
info:
  description: Account, organization, workspace and billing routes of NEAR AI Cloud.
  title: NEAR AI Cloud Platform API
  version: '5'
servers:
  - url: https://cloud-platform.near.ai
    description: NEAR AI Cloud Platform
security: []
paths:
  /v1/users/me/profile:
    put:
      tags:
        - Account
      summary: Update the profile
      description: >-
        Sets the display name and avatar URL of the signed-in user and returns
        the updated profile.
      operationId: update_current_user_profile
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateUserProfileRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserResponse'
          description: The updated profile.
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: The request is not valid.
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Missing or invalid credential.
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: The user does not exist.
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Internal error.
      security:
        - session: []
components:
  schemas:
    UpdateUserProfileRequest:
      description: The new profile values.
      properties:
        avatar_url:
          description: URL of the avatar image.
          type:
            - string
            - 'null'
        display_name:
          type:
            - string
            - 'null'
      type: object
    UserResponse:
      description: The signed-in user's profile.
      properties:
        auth_provider:
          description: The sign-in provider of the account, such as `github`.
          type: string
        avatar_url:
          type:
            - string
            - 'null'
        contact_email:
          description: Verified contact email address, if the user has one.
          type:
            - string
            - 'null'
        contact_email_verified:
          description: Whether the contact email address is verified.
          type: boolean
        created_at:
          format: date-time
          type: string
        display_name:
          type:
            - string
            - 'null'
        email:
          description: The email address the user signs in with.
          type: string
        id:
          type: string
        is_active:
          type: boolean
        last_login_at:
          format: date-time
          type:
            - string
            - 'null'
        organizations:
          items:
            $ref: '#/components/schemas/UserOrganizationResponse'
          type:
            - array
            - 'null'
        updated_at:
          format: date-time
          type: string
        username:
          type: string
        workspaces:
          items:
            $ref: '#/components/schemas/UserWorkspaceResponse'
          type:
            - array
            - 'null'
      required:
        - id
        - email
        - username
        - created_at
        - updated_at
        - is_active
        - auth_provider
        - contact_email_verified
      type: object
    ErrorResponse:
      description: The body of every error answer on the user routes.
      properties:
        error:
          $ref: '#/components/schemas/ErrorDetail'
      required:
        - error
      type: object
    UserOrganizationResponse:
      description: User's organization with role (subset of the organization body).
      properties:
        created_at:
          format: date-time
          type: string
        description:
          type:
            - string
            - 'null'
        id:
          type: string
        is_active:
          type: boolean
        name:
          type: string
        role:
          $ref: '#/components/schemas/MemberRole'
      required:
        - id
        - name
        - role
        - is_active
        - created_at
      type: object
    UserWorkspaceResponse:
      description: User's workspace (subset of the workspace body).
      properties:
        created_at:
          format: date-time
          type: string
        id:
          type: string
        is_active:
          type: boolean
        name:
          type: string
        organization_id:
          type: string
      required:
        - id
        - name
        - organization_id
        - is_active
        - created_at
      type: object
    ErrorDetail:
      properties:
        code:
          type:
            - string
            - 'null'
        message:
          type: string
        param:
          type:
            - string
            - 'null'
        type:
          type: string
      required:
        - message
        - type
      type: object
    MemberRole:
      description: Member role enum for API
      enum:
        - owner
        - admin
        - member
      type: string
  securitySchemes:
    session:
      bearerFormat: Session token
      description: 'Session token from signing in, sent as `Authorization: Bearer <token>`.'
      scheme: bearer
      type: http

````

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