Get Player Inventory Level
GET/inventory/v1/player/:player_id/inventory-level
***DEPRECATED, use /v2/player/{player_uuid}/player-level instead. Get the levels for items in a player's inventory
Required Permissions:
-
For any player (including themselves) any of:
inv:*,inv:read_inv:any -
For the player themselves :
inv:read_inv:self
Request
Path Parameters
Query Parameters
Responses
- 200
- 403
- 404
- 422
- 503
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
Array [
- MOD1
]
levels
object[]
Inventory Levels for a Player.
Item UUID for this Inventory Level.
item_id
object
Item ID for this Inventory Level.
anyOf
integer
Current Level
Current quantity
Quantity required for the next level.
{
"levels": [
{
"item_uuid": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"item_id": 0,
"level": 0,
"count": 0,
"count_for_next_level": 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"
}
The specified player was not found
- application/json
- Schema
- Example (from schema)
Schema
Default value: true
{
"auth_success": true,
"error_code": "string",
"desc": "string"
}
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detail
object[]
loc
object[]
required
anyOf
string
integer
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}
Service was unable to fulfill the request at this time and should be retried after the Retry-After wait time
Response Headers
Retry-After
integer
Number of seconds after which to retry the request, when the server should have the resource available
- application/json
- Schema
- Example (from schema)
Schema
Default value: true
{
"auth_success": true,
"error_code": "string",
"desc": "string"
}