update-role
POST
/users/rolesUpdate the role of a User.
Available roles : admin, moderator, tester, ea-tester, user
Request
Header Params
Authorization
string
required
Example:
Bearer {{token}}
Body Params application/json
userId
integer
required
role
string
required
Example
{
"userId": 2,
"role": "moderator"
}
Request samples
Responses
成功(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
object {0}
Example
Not configured
Last modified: 2 年前