Change user role
PATCH {{url}}/user/change-role/:userId
This request lets admins update the role of users.
The user ID needs to be updated in the userId
path variable in the request URL.
Request Body
{"role"=>"user"}
RESPONSES
status: OK
{"status":true,"data":{"id":2,"username":"tommiller","email":"tommiller14@example.com","age":35,"role":"user","firstName":"Tom","lastName":"Miller"}}