- 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
Add Role to User
POST
https://api.lootlocker.io/admin/roles/{{user_id}}
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request POST '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": ,
"roles": ["moderator"]
}'
Response Response Example
200 - Add Role to User
{
"game_roles": [
{
"roles": [
"admin"
],
"game_id": 10216
}
],
"self": true,
"success": true
}
Request
Header Params
x-auth-token
stringÂ
required
Example:
{{admin_auth_token}}
Body Params application/json
permissions
array[string]
required
Examples
Responses
🟢200Add Role to User
application/json
Body
game_roles
array [object {2}]Â
required
roles
array[string]
required
Allowed values:
admindevelopermoderator
game_id
number  | nullÂ
required
self
booleanÂ
required
success
booleanÂ
required
🟠400Inserting duplicate roles
Modified at 2024-02-19 10:42:27