Skip to content
SoulFire LogoSoulFire

Transfer items

POST
/v1/inventory:transfer

Authorization

headerAuthorizationBearer <JWT>

Preferred API authentication. Use a JWT with the api audience.

Request Body

application/json
  1. body
scope?
selector?
count?integer
Formatint32
from?soulfire.v1.InventoryArea
Value in"INVENTORY_AREA_UNSPECIFIED""INVENTORY_AREA_CONTAINER""INVENTORY_AREA_MAIN""INVENTORY_AREA_HOTBAR""INVENTORY_AREA_ARMOR""INVENTORY_AREA_OFFHAND""INVENTORY_AREA_CRAFTING""INVENTORY_AREA_CURSOR""INVENTORY_AREA_PLAYER"
to?soulfire.v1.InventoryArea
Value in"INVENTORY_AREA_UNSPECIFIED""INVENTORY_AREA_CONTAINER""INVENTORY_AREA_MAIN""INVENTORY_AREA_HOTBAR""INVENTORY_AREA_ARMOR""INVENTORY_AREA_OFFHAND""INVENTORY_AREA_CRAFTING""INVENTORY_AREA_CURSOR""INVENTORY_AREA_PLAYER"
expectedRevision?string
Match^(0|[1-9][0-9]*)$
idempotencyKey?string|null

Response Body

Successful response.

application/json
  1. response
actionId?string
Formatuuid
container?
Example Request
curl -X POST 'http://127.0.0.1:38765/v1/inventory:transfer' \
  -H 'Content-Type: application/json' \
  -d '{
  "count": 0,
  "from": "INVENTORY_AREA_UNSPECIFIED",
  "to": "INVENTORY_AREA_UNSPECIFIED",
  "expectedRevision": "0"
}'
Example Response
{
  "actionId": "4a2794ff-94cb-4bac-8d36-d5fb36c563a0",
  "container": {
    "containerId": 0,
    "stateId": 0,
    "revision": "string",
    "containerType": "string",
    "title": {
      "plainText": "string",
      "json": "string"
    },
    "layout": {
      "title": "string",
      "regions": [
        {
          "id": "string",
          "label": "string",
          "startIndex": 0,
          "slotCount": 0,
          "columns": 0,
          "type": "SLOT_REGION_NORMAL"
        }
      ],
      "totalSlots": 0,
      "buttons": [
        {
          "buttonId": 0,
          "label": "string",
          "iconItemId": "string",
          "description": "string",
          "disabled": true,
          "selected": true
        }
      ],
      "containerType": "string",
      "textInputs": [
        {
          "id": "string",
          "label": "string",
          "currentValue": "string",
          "maxLength": 0,
          "placeholder": "string"
        }
      ],
      "bookPages": [
        {
          "pageNumber": 0,
          "content": "string"
        }
      ],
      "currentBookPage": 0
    },
    "slots": [
      {
        "slot": 0,
        "area": "INVENTORY_AREA_UNSPECIFIED",
        "item": {
          "itemId": "string",
          "count": 0,
          "maxStackSize": 0,
          "damage": 0,
          "maxDamage": 0,
          "customName": {
            "plainText": "string",
            "json": "string"
          },
          "lore": [
            {
              "plainText": "string",
              "json": "string"
            }
          ],
          "enchantments": [
            {
              "enchantmentId": "string",
              "level": 0
            }
          ],
          "food": {
            "nutrition": 0,
            "saturationModifier": 0.1,
            "canAlwaysEat": true,
            "eatSeconds": 0.1
          },
          "tool": {
            "toolTags": [
              "string"
            ],
            "defaultMiningSpeed": 0.1,
            "harvestLevel": 0
          },
          "armor": {
            "equipmentSlot": "string",
            "defense": 0,
            "toughness": 0.1,
            "knockbackResistance": 0.1
          },
          "components": {},
          "customDataNbt": "string",
          "fingerprint": "string",
          "potion": {
            "potionId": "string",
            "effects": [
              {
                "effectId": "string",
                "amplifier": 0,
                "durationTicks": 0,
                "ambient": true,
                "visible": true,
                "showIcon": true
              }
            ],
            "color": 0
          }
        },
        "mayPlace": true,
        "mayPickup": true
      }
    ],
    "carried": {
      "itemId": "string",
      "count": 0,
      "maxStackSize": 0,
      "damage": 0,
      "maxDamage": 0,
      "customName": {
        "plainText": "string",
        "json": "string"
      },
      "lore": [
        {
          "plainText": "string",
          "json": "string"
        }
      ],
      "enchantments": [
        {
          "enchantmentId": "string",
          "level": 0
        }
      ],
      "food": {
        "nutrition": 0,
        "saturationModifier": 0.1,
        "canAlwaysEat": true,
        "eatSeconds": 0.1
      },
      "tool": {
        "toolTags": [
          "string"
        ],
        "defaultMiningSpeed": 0.1,
        "harvestLevel": 0
      },
      "armor": {
        "equipmentSlot": "string",
        "defense": 0,
        "toughness": 0.1,
        "knockbackResistance": 0.1
      },
      "components": {},
      "customDataNbt": "string",
      "fingerprint": "string",
      "potion": {
        "potionId": "string",
        "effects": [
          {
            "effectId": "string",
            "amplifier": 0,
            "durationTicks": 0,
            "ambient": true,
            "visible": true,
            "showIcon": true
          }
        ],
        "color": 0
      }
    },
    "selectedHotbarSlot": 0,
    "pathBuildingBlockCount": 0
  }
}

Was this page helpful?