Game API
HomeLootLocker
HomeLootLocker
LootLocker
  1. Heroes
  • Default module
    • Game API
    • Authentication
      • Guest Session
      • White Label Session
      • Steam Session
      • Epic Games Session
      • Apple Sign In Session
      • Apple Game Center Session
      • Google Session
      • Google Play Games Session
      • Nintendo Switch Session
      • Xbox Session
      • Meta/Oculus Session
      • Discord Session
      • PSN Session (v3)
      • PSN Player Verification
      • Steam/PSN Session
      • End Session
      • Steam Player Verification
    • Unified Player Accounts
      • Connected Accounts
        • List Connected Accounts
        • Connect Google Account
        • Connect Twitch Account
        • Connect Apple Account
        • Connect Epic Account
        • Connect PSN Account
        • Connect Discord Account
        • Attach Provider
        • Transfer Providers
        • Unlink Platform Provider
      • Begin Remote Session Login Lease
      • Begin Remote Session Link Lease
      • Poll Remote Session Lease
      • Refresh Remote Session
    • White Label Login
      • Sign Up
      • Sign In
      • Request Verification
      • Request Reset Password
      • Verify Session
    • Players
      • Files
      • Player Storage
        • Get Player Storage
        • Get Player Storage Single Item
        • Get Player Public Storage
        • Update Player Storage
        • Lookup Public Player Storage
        • Delete Player Storage Item
      • Get Info From Session
      • List Multiple Players Info
      • Lookup Player Names by IDS
      • Get Player Name
      • Set Player Name
      • Migrate DLCs
      • Get Migrated DLCs
      • Set Player Profile Private
      • Set Player Profile Public
      • Get Other Players Loadout for Default Character
      • Get Players Loadout for Default Character
      • Delete Player
      • Submit XP
      • Get Other Player Info
      • Get Player Info
      • Get Multiple Other Players XP And Level
    • Notifications
      • List Notifications
      • Read Notifications
      • Read All Notifications
    • Commerce
      • Currency
        • Get Currency By Code
        • List Currencies
        • List Denominations By Currency
      • Purchasing
        • Stores
          • Google Play Store
            • Google Play Player Product Purchase
            • Google Play Character Product Purchase
          • Apple App Store
            • Apple App Store - Player Purchase
            • Apple App Store - Character Purchase
          • Steam
            • Steam - Begin Purchase
            • Steam - Query Transaction
            • Steam - Finalise Transaction
          • Epic Games
            • Redeem
          • PSN
            • Redeem
        • Purchase - In Game Only
        • Get Player Balance
        • Purchase - Get Status
        • Get Order Details
        • Purchase - Soft Currency Spend
        • Purchase - Steam Hard Currency
        • Purchase - Android
        • Purchase - iOS
      • Balances
        • Credit Balance
        • Debit Balance
        • List Balances
        • Get Wallet
        • Get Wallet for Holder
        • Create New Wallet
      • Catalogs
        • List Catalogs For Game
        • List Catalog Items By Key
    • Entitlements
      • List Entitlements
      • Get Single Entitlement
    • Leaderboards
      • Get Score List
      • Submit Score
      • Increment Score
      • Get Member Rank
      • Get By List of Members
      • List Leaderboards
      • Get Leaderboard Details
      • List Historical Leaderboard Data
      • Get Historical Leaderboard Data
    • Characters & Heroes
      • Characters
        • List Equippable Contexts to Default Character
        • List Equippable Contexts to Character By ID
        • Update Character
        • Delete Character
        • List Character Types
        • List Characters
        • Create Character
        • Get Loadout For All Player Characters
        • Get Loadout For Player Characters By Platform ID
        • Equip Asset To Character
        • Unequip Asset To Character
        • Equip Asset To Default Character
        • Unequip Asset To Default Character
        • Get Loadout For Player Characters By Player UID
      • Heroes
        • Get Game Heroes
          GET
        • Create Player Hero
          POST
        • List Player Heroes
          GET
        • Get Player Hero
          GET
        • Update Player Hero
          PUT
        • Delete Player Hero
          DELETE
        • List Player Hero Inventory
          GET
        • Get Default Player Hero By SteamID64
          GET
        • List Player Heroes By SteamID64
          GET
        • List Player Heros Loadout By ID
          GET
        • Get Player Hero Loadout
          GET
        • Equip Asset to Hero
          POST
        • Unequip Asset from Hero
          DELETE
    • Assets
      • Drop Tables
        • Compute and Lock Drop Table
        • Pick Drops
      • List Contexts
      • Get Assets Stream
      • Get Assets List
      • Get Assets List By Asset IDs
      • List Favourite Assets
      • Unfavourite Asset
      • Favourite Asset
      • List Simplified Assets
    • Asset Instances
      • Storage
        • Stream All Instance Storage To Player
        • Get Key Value for Asset Instance and Key Value Pair ID
        • List Key Value Sets for Asset Instance
        • Create Key Value Pair
        • Update Item Storage By Keys
        • Update Item Storage By ID
        • Delete Item Storage By ID
      • Loot Box
        • Inspect Loot Box
        • Open Loot Box
      • List Universal Assets
      • List Player Inventory
      • Stream Player Inventory
      • Delete asset from player's inventory
      • Grant asset to player
      • Get Asset Grant Notifications
      • Activate Rental Asset
    • Triggers
      • Call
      • Execute Trigger
      • List Triggers For Player
    • Progressions
      • Tiers
        • Get Progression Tiers
        • Get Single Progression Tier By Step
      • Players
        • Get All Player Progressions
        • Get All Player Progressions By Player ULID
        • Get Player Progressions By Key
        • Get Player Progressions By Key and Player ULID
        • 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 Key
        • 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 Key
        • Add points to an Asset Instance progression
        • Subtract points from an Asset Instance progression
        • Reset Asset Instance progression
        • Delete Asset Instance progression
      • Get All Progressions
      • Get Progression By Key
    • Messages
      • List Messages
    • Friends
      • Followers
        • List
        • List Following
        • Follow
        • Unfollow
      • List Friends
      • List Incoming Friend Requests
      • List Outgoing Friend Requests
      • Send Friend Request
      • Cancel Outgoing Friend Request
      • Accept Friend Request
      • Decline Friend Request
      • Delete Friend
      • List Blocked Players
      • Block Player
      • Unblock Player
    • Feedback
      • Category
        • List
      • Moderation Reporting
        • [Legacy] Report Player
        • [Legacy] Report Asset
        • [Legacy] Get Player Report Reasons
        • [Legacy] Get Asset Report Reasons
        • [Legacy] Get Asset Report Types
        • Get Removed UGC for Player
      • Create
    • Metadata
      • List Metadata
      • Metadata Operations
      • List Multisource Metadata
    • User Generated Content (UGC)
      • Asset Candidates
        • Get Asset Candidate
        • List Asset Candidates
        • Create Asset Candidate
        • Add File to Asset Candidate
        • Update Asset Candidate
        • Delete Asset Candidate
    • Game
      • Get Game Info
      • Ping
    • Collectables
      • Collect Collectable Item
      • List Collectables
    • Missions
      • Get Mission
      • List Missions
      • Start Mission
      • Finish Mission
  • Websockets
    • Presence
  1. Heroes

Create Player Hero

POST
https://api.lootlocker.com/game/v1/player/heroes

Request

Authorization
API Key
Add parameter in header
x-session-token
Example:
x-session-token: ********************
or
Header Params

Body Params application/json

Examples

Responses

🟢200OK
application/json
Body

🔴500Server Error
🟠400Bad Request
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.lootlocker.com/game/v1/player/heroes' \
--header 'x-session-token: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "hero_id": 8
}'
Response Response Example
200 - Success
{
    "success": true,
    "hero": {
        "id": 1,
        "hero_id": 6,
        "instance_id": 27,
        "character_id": 42,
        "hero_name": "Test Hero",
        "character_name": null,
        "class_name": "Test",
        "is_default": false,
        "asset_variation_id": null,
        "asset": {
            "id": 84,
            "uuid": "76e65126-4efe-427b-a22d-10366789add1",
            "ulid": "01J2BR3DS16RW27J8Z54BMFZQF",
            "name": "Test Hero",
            "active": false,
            "purchasable": false,
            "price": 0,
            "sales_price": null,
            "display_price": null,
            "context": "Hero",
            "context_id": 436,
            "character_classes": [],
            "unlocks_context": null,
            "detachable": false,
            "updated": "Tue, 09 Jul 2024 12:39:39 +0000",
            "marked_new": "Tue, 09 Jul 2024 12:39:39 +0000",
            "default_variation_id": 0,
            "default_loadouts": {
                "Test": false,
                "Test 2": false
            },
            "description": "",
            "links": null,
            "storage": [],
            "rarity": null,
            "popular": false,
            "popularity_score": 0,
            "package_contents": null,
            "unique_instance": false,
            "external_identifiers": null,
            "rental_options": null,
            "filters": [],
            "files": [],
            "data_entities": [],
            "hero_equip_exceptions": [],
            "asset_candidate": null,
            "drop_table_max_picks": null
        }
    }
}
Modified at 2025-01-23 21:09:29
Previous
Get Game Heroes
Next
List Player Heroes
Built with