Skip to main content
POST
/
item
/
give
add items to an entity's inventory
curl --request POST \
  --url http://localhost:3917/item/give \
  --header 'Content-Type: application/json' \
  --data '
{
  "count": 2,
  "entity_id": 5,
  "item_id": 1
}
'
{
  "ok": true,
  "message": "<string>"
}

Body

application/json

Add items to an entity's inventory: entity_id, item_id, and count (defaults to 1). Auto-creates an 8-slot inventory if absent.

The body is of type any.

Response

200 - application/json

Items added; ok is false with a message if the entity is missing or the inventory is full.

ok
boolean
required
message
string | null