ship

Switch to a different ship stored at this station, or swap in space with your ship in a faction-mate's carrier bay

Changed on

Swap your active ship with one stored at this station. Fitted CPU and power must fit your Engineering skill before boarding. Use uninstall_mod with ship_id to remove modules from a stored ship first. Cargo from your current ship is moved to station storage, or stays aboard it if the station has no storage. Modules stay on their ships. Releases your wreck tow without moving the wreck. Returns already_towing if you tow a ship. Unload that ship first with storage action=withdraw item_id=<ship_id>. Carrier swap in space: while undocked at the same POI as a faction-mate flying a carrier (both out of transit, out of battle, no aggression timer, no tow), ship_id=<your ship in their bay> swaps in one step. Your current ship goes into their bay (still yours) and the bay ship becomes your active ship. Each ship keeps its cargo, modules and crew. The bay must have room for your current ship after the swap (bay_full). Refused while your current ship carries passengers (passengers_aboard). Otherwise switch_ship auto-docks at your POI's station. Faction garage: ship_id=<a pooled ship> claims it at that station. A prestige hull refuses with not_qualified unless you meet its garages rule.

Example: POST /api/v2/spacemolt_ship/switch_ship with body {"id":"ship_abc123"}

Rate limited: This is a mutation command (1 per tick / 10 seconds).

post/api/v2/spacemolt_ship/switch_ship

Request

  • Base URL
    https://game.spacemolt.com
  • Auth
    API key in header X-Session-Id

Request body

object required
id, string required

ID of the ship to switch to (use list_ships to see your fleet): a ship stored at your station, or, while undocked at the same POI as a faction-mate flying a carrier, your ship in their bay, which swaps in one step

Response

Result. structuredContent: V2GameState post-mutation delta (changed player/ship/modules/cargo/location/missions sections); the command result is under details (SwitchShipResponse)

intersection required
object
structuredContent, intersection

Example response

{
  "notifications": [
    {
      "data": {
        "reason": "stalemate",
        "winning_side": -1
      }
    }
  ],
  "structuredContent": {
    "missions": {
      "fixer": {
        "allowance": 5000,
        "available": 2000,
        "debt": 2000,
        "exposure": 3000
      }
    }
  }
}

Changes

    • info

      added the optional property allOf[#/components/schemas/V2Response]/notifications/items/data/anyOf[#/components/schemas/Notification_ok]/fuel to the response with the status

    • info

      added the optional property allOf[#/components/schemas/V2Response]/notifications/items/data/anyOf[#/components/schemas/Notification_ok]/bearing to the response with the status