moveAll
Move everything movable from one container to another.
One packet per item, packed top-left first and footprint-aware — the game's own "store all". Items that will not fit are left where they are and counted in `noFit`, so a full destination is a partial success rather than a failure. Quest-supplied backpack items cannot leave the backpack and are counted in `supplied`.
Request
POST /api/v1/sessions/{accountKey}/actions/moveAll
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
srcInv (src_inv) | integer | yes | Container to empty. |
dstInv (dst_inv) | integer | yes | Container to fill. |
premium | boolean | no | Accepted for backwards compatibility and ignored. |
Example request
{ "srcInv": 2, "dstInv": 4 }
Response
`{ moved, supplied, noFit, failed, srcInv, dstInv }`.
| Field | Type | Meaning |
|---|---|---|
moved | integer | How many were transferred. |
noFit | integer | How many had no room in the destination. |
supplied | integer | How many were quest-supplied and could not leave the backpack. |
failed | integer | How many sends were refused. |
Example response
{ "moved": 11, "supplied": 0, "noFit": 2, "failed": 0, "srcInv": 2, "dstInv": 4 }
Errors
| Code | When |
|---|---|
action_failed | Source and destination are the same, or no character is in the lobby. |
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.