---
title: "Update user profile data"
method: POST
path: "/public/update-user-profile-data"
tags: ["User"]
---

# Update user profile data

`POST /public/update-user-profile-data`

Update user data like name, profile photo url, username, etc. using this resolver. Useful for using built-in services like coding labs and live classes

Authentication with the "FERMION-API-KEY" header is required to use this endpoint.

Rate limit: Maximum 300 requests in a window of 1m.

## Request body

- object
  - `data` object[], required
    - `data` object, required
      - `userId` string — Internal userId you have been using for the user in your database. Specify either this or userEmail
      - `userEmail` string, email — Email of the user. Specify either this or userId
      - `newName` string — Pass a value here to update name of user. Leave undefined to keep it unaffected
      - `newUsername` string — Pass a value here to update username of user. Leave undefined to keep it unaffected
      - `newProfilePictureUrl` string, uri — Pass a value here to update profile photo of user. Leave undefined to keep it unaffected
      - `newPassword` string — Pass a value here to update password of the user. Leave undefined to keep it unaffected

## Response `200`

API Response Body

- object[]
  - `output` union, required
    - object
      - `status` 'ok', required
      - `data` object, required
    - object
      - `status` 'error', required
      - `errorMessage` string, required

---

[API](https://skmtc.net/fermion/apis/fermion-backend-api.md) · [All operations](https://skmtc.net/fermion/apis/fermion-backend-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/fermion/fermion-backend-api/revisions/7ce364c8820b/schema)
