Update a user

Updates either a person's account record (target: "user") or their own profile (target: "profile"); the two branches accept different fields, and a target that is neither answers 200 without changing anything. target: "profile" always updates the identity your API key authenticates as, whatever ID is in the path — with an API key that identity is the key itself, not the person who created it. A profile update replaces the stored language and timezone and clears any name or mobile field you leave out. The steps are not transactional, so a partial update is possible, and a 200 does not confirm that a person's record actually changed.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

ID of the person to update; it must be a valid UUID, and a key with the User role must use its own ID.

Body Params
string
enum
required

user to update the person's account record, profile to update your own profile; a missing or unrecognized value answers 200 without changing anything.

Allowed:
string

Account the assignments and settings are written within; required for target: "profile" and sent as an empty value if you omit it.

string
enum
required

Interface language, en-us or fr-ca; required by both branches.

Allowed:
string
required

The person's timezone; required by both branches.

string

Sign-in name; required for target: "user", and an optional profile change that is checked for uniqueness.

string

The person's default account; used only by target: "user".

string

Given name; used by target: "user".

string

Family name; used by target: "user".

string | null

Name shown in the interface for target: "user"; omitting it writes null.

string | null

Avatar for target: "user"; omitting it writes null.

string

Account assignments for target: "user"; this assignment update does not run for an account-scoped API key.

string

Group assignments for target: "user"; at least one is required, and you cannot grant a group that outranks your own API key.

string

Extension assignments for target: "user".

string | null

Given name for target: "profile"; omitting it clears the stored value.

string | null

Family name for target: "profile"; omitting it clears the stored value.

string | null

Display name for target: "profile"; omitting it clears the stored value.

string | null

Mobile number, used by both branches; omitting it clears the stored value.

string

New password for target: "profile"; it is hashed before storage and ignored when empty.

Responses

401

Missing or invalid API key.

Language
Credentials
Bearer
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json