# Update profile **PATCH /api/my-account** Update profile for the user, only the fields that are passed in will be updated. ## Servers - Logto endpoint address.: https://[tenant_id].logto.app (Logto endpoint address.) ## Authentication methods - O auth2 ## Parameters ## Body parameters Content-type: application/json - **name** (string | null) The new name for the user. - **avatar** (string(url) | null) The new avatar for the user, must be a URL. - **username** (string(regex) | null) The new username for the user, must be a valid username and unique. - **customData** (object) The new custom data for the user. This will completely replace the existing customData. Requires CustomData scope. ## Responses ### 200: The profile was updated successfully. #### Body Parameters: application/json (object) - **id** (string) - **username** (string | null) - **primaryEmail** (string | null) - **primaryPhone** (string | null) - **name** (string | null) - **avatar** (string | null) - **customData** (object) arbitrary - **identities** (object) - **lastSignInAt** (number | null) - **createdAt** (number) - **updatedAt** (number) - **profile** (object) - **applicationId** (string | null) - **isSuspended** (boolean) - **hasPassword** (boolean) - **ssoIdentities** (array[object]) ### 400: The request body is invalid. ### 401: Unauthorized ### 403: Forbidden ### 422: The username is already in use. [Powered by Bump.sh](https://bump.sh)