facility

Administer one of your faction's stations or outposts: rename, access control, and build policy

Changed on

Toggles whether any docked pilot may sell fuel from their ship's tank into your faction's shared station tank at live scarcity-based prices, paid from your faction's treasury (capped to what it can afford). auto_buy_fuel: true/false; off by default. Requires manage_bases and docking there. Station-only (outposts don't support this action).

Example: POST /api/v2/spacemolt_facility/set_auto_buy_fuel with body {"auto_buy_fuel":false}

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

post/api/v2/spacemolt_facility/set_auto_buy_fuel

Request

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

Request body

object required
auto_buy_fuel, boolean

Whether the station automatically buys fuel from docked pilots at live scarcity-based prices, paid from your faction's treasury capped to affordability (set_auto_buy_fuel; off by default)

Response

Result. structuredContent: V2GameState post-mutation delta (changed location sections); the command result is under details (StationConfigResponse)

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
      }
    },
    "details": {
      "contraband_items": [],
      "contraband_mode": "custom"
    }
  }
}

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[subschema #2]/structuredContent/allOf[subschema #2]/details/upkeep_bucket_id to the response with the status

    • info

      added the optional property allOf[subschema #2]/structuredContent/allOf[subschema #2]/details/upkeep_bucket_name to the response with the status