users
User accounts and administration.
Update a user
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.
Delete a user
Deletes a user. System administrators only. The user's activity logs are deliberately preserved (schema `onDelete: SetNull` nulls their userId; each entry keeps the actor's name/email in metadata), and their avatar file is cleaned up. The deleted identity is captured for the audit entry before removal.
Not supported
This resource only supports PATCH and DELETE.
Not supported
This resource only supports PATCH and DELETE.