gather

Pull everything from several containers into one.

`moveAll` from many sources in one pass, stopping cleanly when the destination fills. The sources actually drawn from come back in `sources` — a source that was already empty is skipped.

In Inventory & stash.

Request

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

Parameters

NameTypeRequiredDescription
srcInvs (src_invs)integer[]yesContainers to empty.
dstInv (dst_inv)integeryesContainer to fill.
premiumbooleannoAccepted for backwards compatibility and ignored.

Example request

{ "srcInvs": [10, 11], "dstInv": 4 }

Response

`{ moved, failed, full, dstInv, sources }`.

FieldTypeMeaning
fullbooleanTrue when the destination filled and the sweep stopped early.
sourcesinteger[]The containers actually drawn from.

Example response

{ "moved": 23, "failed": 0, "full": false, "dstInv": 4, "sources": [10, 11] }

Errors

CodeWhen
action_failedNo character is in the lobby.
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.