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`.
Request
POST /api/v1/sessions/{accountKey}/actions/move
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
uid | string | yes | The item's unique id, from `inventory` or `stash`. |
src_inv | integer | yes | Container it is in. |
src_slot | integer | yes | Slot it is in. 0 is a real slot. |
dst_inv | integer | yes | Container to move it to. |
dst_slot | integer | yes | Slot 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
| Code | When |
|---|---|
missing_field | `uid` was absent or unparseable. |
action_failed | The destination is occupied, too small, or the send failed. |
plan_limit | Not 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.