Skip to main content
POST
/
hero
/
select
apply a hero template to an existing entity
curl --request POST \
  --url http://localhost:3917/hero/select \
  --header 'Content-Type: application/json' \
  --data '
{
  "entity_id": 0,
  "hero_name": "Dragon Knight"
}
'
{
  "ok": true,
  "message": "<string>"
}

Body

application/json

Apply a registered hero template to an existing entity: entity_id and hero_name. Inserts Health, Mana, Gold, Level, BaseStats, StatGrowth, AutoCombat, AbilitySet, and EntityRole::Hero.

The body is of type any.

Response

200 - application/json

Hero template applied; ok is false with a message if hero_name is missing, the hero is unknown, or the entity is not found.

ok
boolean
required
message
string | null