Admin

Upgrade user role (Admin only)

post/admin/upgrade-role

Request

  • Base URL: http://localhost:3000
  • URL: http://localhost:3000/admin/upgrade-role
  • Auth: HTTP bearer

Request body

user_idstring uuid required
new_role'STUDENT' | 'MENTOR' | 'ADMIN' required

Response

Role upgraded successfully

messagestring required

Changes

    • breaking

      removed the media type */* from the request body

    • warning

      deleted the header request parameter Authorization

    • warning

      deleted the header request parameter Content-Type

    • info

      the endpoint scheme security bearerAuth was added to the API

    • info

      added the media type application/json to the request body

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status