move

Move one item to an empty slot.

The destination must be free and large enough for the item's footprint — `width` and `height` come back with every item. To exchange two items use `swap`; to combine stacks use `merge`.

In Inventory & stash.

Request

POST /api/v1/sessions/{accountKey}/actions/move

Parameters

NameTypeRequiredDescription
uidstringyesThe item's unique id, from `inventory` or `stash`.
src_invintegeryesContainer it is in.
src_slotintegeryesSlot it is in. 0 is a real slot.
dst_invintegeryesContainer to move it to.
dst_slotintegeryesSlot to move it to.

Example request

{ "uid": "630211546215118851", "src_inv": 3, "src_slot": 5, "dst_inv": 4, "dst_slot": 24 }

Response

{ "ok": true }

Example response

{ "ok": true }

Errors

CodeWhen
missing_field`uid` was absent or unparseable.
action_failedThe destination is occupied, too small, or the send failed.
plan_limitNot on the free plan.

See also

DarkerAPI is an independent project. It is not affiliated with, endorsed by or associated with IRONMACE Co., Ltd. or Valve Corporation. “Dark and Darker” and related marks belong to their respective owners.