Skip to main content
POST
/
entity
/
damage
apply damage to an entity
curl --request POST \
  --url http://localhost:3917/entity/damage \
  --header 'Content-Type: application/json' \
  --data '
{
  "amount": 25,
  "entity_id": 1
}
'
{
  "ok": true,
  "message": "<string>"
}

Body

application/json

Target entity id and damage amount.

The body is of type any.

Response

200 - application/json

Damage event queued for the entity.

ok
boolean
required
message
string | null