merge
Merge one stack wholly into another.
Both must be the same item, and the destination must have room under its `maxStack`. To move only part of a stack use `splitMerge`.
Request
POST /api/v1/sessions/{accountKey}/actions/merge
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
src_uid | string | yes | Stack being moved. |
dst_uid | string | yes | Stack being merged into. |
src_inv | integer | yes | Source container. |
src_slot | integer | yes | Source slot. |
dst_inv | integer | yes | Destination container. |
dst_slot | integer | yes | Destination slot. |
Example request
{
"src_uid": "630211546215118854", "src_inv": 3, "src_slot": 8,
"dst_uid": "630211546215118855", "dst_inv": 4, "dst_slot": 12
}
Response
{ "ok": true }
Example response
{ "ok": true }
Errors
| Code | When |
|---|---|
missing_field | Either uid was absent or unparseable. |
action_failed | Different items, no room in the destination stack, 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.