- Auth
- API Keys
- Collectables
- Heroes and Characters
- Game
- Asset Candidates
- Assets
- Bones
- Players
- Leaderboards
- Files
- Feature Toggles
- Universal Player Auth
- Merging
- Rarities
- Preferences
- Platforms
- Progressions
- User
- Organisation
- Link Types
- Events/Missions
- Maps
- White Label Login
- Rewards
- Moderation Reports
- Catalogs
- Currency
- Balances
- Messages
- DLC
- Player Segments
- Character Classes
- Subscriptions
- Player Operations
- Roles
- Title Config
- Items
- Entitlements
- Feedback
- Hosts
- Metadata
- Triggers
- Data Migration
- Twitch Drops
- Notifications
Delete User Role
DELETE
https://api.lootlocker.io/admin/roles/{{user_id}}
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request DELETE 'https://api.lootlocker.io/admin/roles/{{user_id}}' \
--header 'x-auth-token: ' \
--header 'x-auth-token;' \
--header 'Content-Type: application/json' \
--data-raw '{
"game_id": ,
"role": "moderator"
}'
Response Response Example
400 - Removing your own Admin
{
"message": "you cannot remove your own admin role",
"request_id": "6db43bbc-4b33-4fe3-9ead-1a30bbc3e396",
"trace_id": "db6b7bf61eace856f2ea6ecf2e29aa94"
}
Request
Header Params
x-auth-token
stringÂ
required
Example:
{{admin_auth_token}}
Body Params application/json
object {0}
Examples
Responses
🟠400Removing your own Admin
application/json
Body
message
stringÂ
required
request_id
stringÂ
required
trace_id
stringÂ
required
🟢200Removing a Role
Modified at 2024-02-19 10:45:01