put
https://user-api.omni.chat/v1/users/
Updates a user by its id.
Users with the admin role may update any user and send the full request body supported by the schema.
Users without the admin role may only update themselves (userId in the path must match the authenticated user).
In that case, only name, avatar, and id from the body are applied; other fields are ignored.
Attempting to update another user returns 403 Forbidden.
Self-edit does not change roles, password, teams, or other restricted fields.