splitMerge
Move part of a stack onto another.
Also how gold is moved between containers: drag `count` gold from one purse onto another. Both stacks survive, with `count` transferred.
Request
POST /api/v1/sessions/{accountKey}/actions/splitMerge
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
src_uid | string | yes | Stack being split. |
dst_uid | string | yes | Stack receiving it. |
src_inv | integer | yes | Source container. |
src_slot | integer | yes | Source slot. |
dst_inv | integer | yes | Destination container. |
dst_slot | integer | yes | Destination slot. |
count | integer | yes | How many to move. |
Example request
{
"src_uid": "630211546215118852", "src_inv": 4, "src_slot": 0,
"dst_uid": "630211546215118856", "dst_inv": 4, "dst_slot": 2,
"count": 25000
}
Response
`{ ok: true, moved }`.
| Field | Type | Meaning |
|---|---|---|
moved | integer | How many were transferred. |
Example response
{ "ok": true, "moved": 25000 }
Errors
| Code | When |
|---|---|
missing_field | Either uid was absent or unparseable. |
action_failed | `count` exceeds the source stack or the destination's remaining room. |
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.