admin

Update User Role

Changed on

Update a user's role from the admin dashboard.

patch/admin/users/{user_id}/role

Request

  • Base URL: https://api.excellence-ai.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.excellence-ai.com/admin/users/{user_id}/role
  • Auth: OAuth 2 (password, token URL api/login)

Path parameters

user_idstring required

Request body

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

Response

Successful Response

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

Changes

    • breaking

      removed the enum value cpge_user of the request property

    • info

      removed the cpge_user enum value from the response property for the response status