Skip to main content

Update a user

PATCH 

/api/users/:id

Updates a user: names, admin flag, active status, timezone, and avatar. Accepts either JSON or multipart/form-data (the latter carries the avatar file). A user may edit themselves; only admins may edit others or change the admin flag. Deactivation is blocked while the user is still on a published, unarchived course. Field-level changes are recorded (before → after) in the audit log.

Auth: required

View source

Request

Responses

The updated user.