Company logoTrust Center Documentation

Update user profile

Update user profile information including personal details and preferences. Users can update their own profiles, admins can update any user.

PATCH
/api/v1/users/{id}
AuthorizationBearer <token>

In: header

Path Parameters

idstring

User ID

Formatuuid
first_name?string

User's first name

last_name?string

User's last name

title?string

User's job title

appearance?string

User's UI theme preference (maps to theme field)

Value in"light" | "dark" | "system"
language?string

User's language preference

Response Body

const body = JSON.stringify({})

fetch("https://app.orbiqhq.com/api/v1/users/497f6eca-6276-4993-bfeb-53cbbbba6f08", {
  body
})
{
  "success": true,
  "data": {
    "user": {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "first_name": "string",
      "last_name": "string",
      "email": "user@example.com",
      "title": "string",
      "theme": "light",
      "language": "string"
    }
  }
}
{
  "error": "No valid fields provided for update"
}
Empty
Empty
Empty
Empty

How is this guide?