Users
Remove role from user
Removes a role from a user. Cannot remove the last admin role from the last admin user.
ProductionStagingUAT
DELETEhttps://ankiren.com/api/admin/users/{id}/roles/{roleId}
Parameters
Path Parameters
- idstringpathRequired
User ID
- roleIdstringpathRequired
Role ID to remove
Responses
200 · Role removed successfully
- successboolean
application/json
{ "success": true }
Sample Code
Đổi ngôn ngữ ở ô Language trên thanh Documentation.
cURL
curl -X DELETE 'https://ankiren.com/api/admin/users/user_123/roles/role_admin' \ -H 'Authorization: Bearer <token>' \ -H 'Accept: application/json'