Create Player Hero
POST
https://api.lootlocker.com/game/v1/player/heroes
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.lootlocker.com/game/v1/player/heroes' \
--header 'x-session-token: ' \
--header 'x-session-token;' \
--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
}
}
}
Request
Header Params
x-session-token
stringÂ
required
Example:
{{session_token}}
Body Params application/json
Responses
Modified at 2025-01-23 21:09:29