Get All Roles
GET/users/v1/role
Get all current roles. Including their custom_data and login_loot_rewards.
Required Permissions:
- For any player (including themselves) :
role:read
Responses
- 200
- 403
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
]
]
Unique Role ID
Default value: 0
Legacy role ID
Default value: [object Object]
Custom data for the role
Possible values: [none, limited, locked]
Role auth bypass options
login_loot_rewards
object[]
List of loot ids that are fulfilled for the player when they begin a new inventory session
Loot ID
Legacy Loot ID
[
{
"role_id": "string",
"legacy_role_id": 0,
"custom_data": {},
"auth_bypass": "none",
"login_loot_rewards": [
{
"loot_id": "string",
"legacy_loot_id": 0
}
]
}
]
Error Codes:
-
auth_invalid_key_id- Invalid Authorization - Invalid Key ID in Access Token -
auth_invalid_version- Invalid Authorization - version -
auth_malformed_access- Invalid Authorization - malformed access token -
auth_not_jwt- Invalid Authorization -
auth_token_expired- Token is expired -
auth_token_format- Invalid Authorization - {} -
auth_token_invalid_claim- Token contained invalid claim value: {} -
auth_token_invalid_type- Invalid Authorization - Invalid Token Type -
auth_token_sig_invalid- Token Signature is invalid -
auth_token_unknown- Failed to parse token -
insufficient_permissions- Insufficient Permissions
- application/json
- Schema
- Example (from schema)
Schema
Default value: true
{
"auth_success": true,
"error_code": "string",
"desc": "string"
}