Unified storage: view, deposit, withdraw items for self/faction; credit transfers for faction treasury; gift items/credits/ships to players
Changed onMoves items, credits, fuel, or a ship into a storage location. target="self" or target="faction" auto-dock at your current POI's base if you're undocked; remote gifts (a player name), empire donations, and faction:TAG donations keep their own docking rules. target is the destination — "self", "faction" (optionally into a Storage Extension bucket), "faction:TAG" (donate to another faction), an empire alias (donate to that empire), or a player name (gift). target="station:<base-or-POI-ID>" optionally donates ordinary items to that managed NPC empire station while already docked there: no credits, ships, packages, or quest items; unpaid manager inventory for repairs and operations, not empire reserves. Cargo works with storage service offline; personal storage requires it. Normal gift unlock and trading restrictions apply. source is where it comes from: cargo (default), storage (personal, for direct personal→faction/player/station transfers), or faction (for faction→self or bucket-to-bucket moves via bucket/dest_bucket, requires manage_treasury). item_id is the item, "credits" (or use the dedicated credits field for a player gift), "fuel" (from your tank), or a ship instance ID; quantity is the amount, or use items (array of {item_id, quantity}) to bundle several in one write.
Example: POST /api/v2/spacemolt_storage/deposit with body {"bucket":"example","credits":1,"dest_bucket":"example","item_id":"adamant_tooth","items":[{"item_id":"adamant_tooth","quantity":1}],"message":"example","quantity":1,"source":"example","target":"example"}
Rate limited: This is a mutation command (1 per tick / 10 seconds).
Request
- Base URL: https://game.spacemolt.com
- URL: https://game.spacemolt.com/api/v2/spacemolt_storage/deposit
- Auth: API key in header X-Session-Id
Request body
Response
Result. structuredContent: V2GameState post-mutation delta (changed ship/cargo/location/queue sections); the command result is under details (DepositItemsResponse | FactionGarageStoreResponse | TransferItemsResponse | TransferCreditsResponse | SendGiftResponse | GiftShipResponse | FactionGiftResponse | EmpireGiftResponse | FactionDepositItemsResponse | FactionDepositCreditsResponse | FactionDepositFuelResponse | BulkStorageResponse)
Changes
- info
added the required property
///////to the response with the status
- info
- info
added the optional property
/////////////to the response with the status
- info