Skip to main content
POST
/
item
/
equip
equip an item from inventory into a named slot
curl --request POST \
  --url http://localhost:3917/item/equip \
  --header 'Content-Type: application/json' \
  --data '
{
  "entity_id": 5,
  "item_id": 1,
  "slot": "weapon"
}
'
{
  "ok": true,
  "message": "<string>"
}

Body

application/json

Equip an inventory item into a named slot (defaults to weapon): entity_id, slot, item_id. Auto-creates Equipment and StatModifiers if absent.

The body is of type any.

Response

200 - application/json

Item equipped; ok is false with a message if the item is not in the inventory or the entity is missing.

ok
boolean
required
message
string | null