admin

Update User Role

Update a user's role from the admin dashboard.

patch/admin/users/{user_id}/role

Path parameters

user_idstring required

Request body

role'admin' | 'cpge_user' | 'student' | 'teacher' required

Response

Successful Response

successboolean required
user_idstring required
previous_rolestring required
role'admin' | 'cpge_user' | 'student' | 'teacher' required

Changes

No recorded changes to this endpoint across all 1 revision of this API.