简体中文
Set or unset admin privilege for a user
cURL
curl --request PATCH \ --url http://127.0.0.1:3000/api/admin/user/{userId}/admin \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "isAdmin": true } '
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
User admin privilege updated successfully.
此页面对您有帮助吗?