Server API
HomeLootLocker
HomeLootLocker
LootLocker
  1. Inventories
  • Session
    • Session
      POST
    • Ping
      GET
  • Leaderboards
    • Schedules
      • Create
      • Delete
      • Get
    • Rewards
      • Create
      • Delete
    • Archives
      • Download
      • List
    • Get Leaderboard
      GET
    • List Leaderboards
      GET
    • Create Leaderboard
      POST
    • Update Leaderboard
      PUT
    • Delete Leaderboard
      DELETE
    • Submit Score
      POST
    • Get All Member Ranks
      GET
    • Get Score List
      GET
  • Assets
    • Get Assets
      GET
  • Asset Instances
    • Get All Storage To Asset Instance
      GET
    • Get Storage Pair by ID
      GET
    • Create Storage Pair on Asset Instance
      POST
    • Update Storage Pairs by Key on Instance
      PUT
    • Update Storage Pair by ID on Instance
      PUT
    • Delete Storage Pair by ID on Instance
      DELETE
  • Triggers
    • Invoke Trigger
  • Inventories
    • List Player Inventory
      GET
    • Get Character Inventory
      GET
    • Get Hero Inventory
      GET
    • Alter Player Inventory
      PATCH
    • Add Asset to Player Inventory
      POST
    • List Universal Assets
      GET
  • Loadouts
    • Get Player Loadout
    • Equip Asset for Player Loadout
    • Unequip Asset for Player Loadout
    • Get Character Loadout
    • Equip Asset for Character Loadout
    • Unequip Asset for Character Loadout
    • Get Hero Loadout
    • Equip Asset for Hero Loadout
    • Unequip Asset for Hero Loadout
  • Characters & Heroes
    • Get Player Characters
    • Get Player Heroes
  • Player Storage
    • Get Player Storage
    • Lookup keys for Multiple Players
    • Delete for Multiple Players
    • Set for Multiple Players
  • Player Files
    • List Files for Player
    • Get File By ID for Player
    • Delete File By ID for Player
    • Upload File For Player
  • Drop Tables
    • Compute and Lock Drop Table
    • Pick Drops
  • Loot Boxes
    • Inspect Loot Box
    • Open Loot Box
  • Player
    • Get Player Info By Game Session Tokens
    • Create Player
    • Lookup Player Names by IDs
  • Progressions
    • Tiers
      • Get Progression Tiers
      • Get Single Progression Tier By Step
    • Players
      • Get All Player Progressions
      • Get Player Progressions By ID
      • Add points to player progression
      • Subtract points from player progression
      • Reset player progression
      • Delete player progression
    • Characters
      • Get All Character Progressions
      • Get Character Progressions By ID
      • Add points to Character progression
      • Subtract points from Character progression
      • Reset Character progression
      • Delete Character progression
    • Asset Instances
      • Get All Asset Instance Progressions
      • Get Asset Instance Progressions By ID
      • Add points to Asset Instance progression
      • Subtract points from Asset Instance progression
      • Reset Asset Instance progression
      • Delete Asset Instance progression
    • Get All Progressions
    • Get Progression By Key
  • Balances
    • Create Wallet Modifiers
    • Credit Balance
    • Debit Balance
    • List Balances
    • Create New Wallet
    • Get Wallet
    • Get Wallet for Holder
  • Currency
    • List Currencies
  • Friends
    • List Friends
  • Metadata
    • Metadata Actions
    • List Metadata
    • List Multisource Metadata
  • Catalogs
    • List Catalog Items By Key
    • Reward Grant
  • Notifications
    • Send Notification to Player
  1. Inventories

Alter Player Inventory

PATCH
https://api.lootlocker.io/server/player/{player_id}/inventory
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PATCH 'https://api.lootlocker.io/server/player//inventory' \
--header 'LL-Version: 2021-03-01' \
--header 'Content-Type: application/json' \
--header 'x-auth-token;' \
--data-raw '{
    "add": [
        {
            "asset_id": 62
        }
    ],
    "remove": [
        36
    ]
}'
Response Response Example
{
    "added": [
        {
            "id": 1,
            "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
            "ulid": "01J8J4FJG869W5Q19FSDT8D3AC",
            "name": "string",
            "active": true,
            "purchasable": true,
            "price": 0,
            "sales_price": 1,
            "display_price": "string",
            "context": "string",
            "context_id": 1,
            "character_classes": [
                1
            ],
            "unlocks_context": "string",
            "detachable": true,
            "updated": "string",
            "marked_new": "string",
            "default_variation_id": 1,
            "default_loadouts": {
                "<user supplied loadout name>": true
            },
            "description": "string",
            "links": [
                {
                    "<user supplied simple name>": "string"
                }
            ],
            "storage": [
                {
                    "key": "string",
                    "value": "string"
                }
            ],
            "rarity": {
                "name": "string",
                "short_name": "string",
                "color": "string"
            },
            "popular": true,
            "popularity_score": 1,
            "package_contents": [
                {
                    "asset": {}
                }
            ],
            "unique_instance": true,
            "external_identifiers": {
                "psn": {
                    "entitlement_id": "string",
                    "sku_id": "string",
                    "product_id": "string"
                },
                "apple_app_store": {
                    "product_id": "string"
                },
                "google_play": {
                    "product_id": "string"
                }
            },
            "rental_options": [
                {
                    "id": 0,
                    "name": "string",
                    "duration": 0,
                    "price": 0,
                    "sales_price": 0,
                    "links": [
                        {
                            "<user supplied simple name>": "string"
                        }
                    ]
                }
            ],
            "filters": [
                {
                    "value": "string",
                    "name": "string"
                }
            ],
            "files": [
                {
                    "id": 1,
                    "name": "string",
                    "duration": 1,
                    "price": 1,
                    "sales_price": 1,
                    "links": [
                        {
                            "<user supplied simple name>": "string"
                        }
                    ]
                }
            ],
            "data_entities": [
                "string"
            ],
            "hero_equip_exceptions": [
                {
                    "can_equip": true,
                    "hero_id": 0,
                    "hero_name": "string"
                }
            ],
            "asset_candidate": 1,
            "drop_table_max_picks": 1,
            "variations": [
                {
                    "id": 1,
                    "name": "string",
                    "primary_color": "string",
                    "secondary_color": "string",
                    "links": [
                        {
                            "<user supplied simple name>": "string"
                        }
                    ]
                }
            ],
            "featured": true,
            "context_locked": true,
            "initially_purchasable": true
        }
    ],
    "removed": [
        0
    ]
}

Request

Authorization
API Key
Add parameter in header
x-auth-token
Example:
x-auth-token: ********************
or
Path Params

Header Params

Body Params application/json

Examples

Responses

🟢200OK
application/json
Body

Modified at 2025-04-07 14:11:25
Previous
Get Hero Inventory
Next
Add Asset to Player Inventory
Built with