---
title: "Manage facilities at stations (production, faction, personal, sales, and more)"
method: POST
path: "/api/v2/spacemolt_facility/upgrades"
tags: ["facility"]
---

# Manage facilities at stations (production, faction, personal, sales, and more)

`POST /api/v2/spacemolt_facility/upgrades`

## Request

- Base URL: `https://game.spacemolt.com`
- URL: `https://game.spacemolt.com/api/v2/spacemolt_facility/upgrades`
- Auth: API key in header `X-Session-Id`

Shows available upgrade paths (next tier, requirements, materials) for facilities you own at your current station.

## Request body

- object

## Response `200`

Result. structuredContent type: FacilityUpgradesResponse

- intersection
  - [`V2Response`](https://skmtc.dev/spacemolt/apis/spacemolt-rest-api-v2-2/revisions/ab53b0dcd00f/schema?at=%2Fcomponents%2Fschemas%2FV2Response)
  - object
    - `structuredContent` FacilityUpgradesResponse
      - `action` 'upgrades', required
      - `base_id` string, required
      - `faction_locked_upgrades` FacilityUpgradeEntry[]
        - `current_level` integer, required
        - `requires` string
        - `upgrade_to` FacilityDefSummary, required
          - `build_cost` integer, required
          - `build_materials` ItemQuantity[]
            - `item_id` string, required
            - `name` string, required
            - `quantity` integer, required
          - `build_time` integer, required
          - `category` string, required
          - `description` string, required
          - `faction_cap` integer
          - `faction_crew_capacity` integer
          - `faction_marine_capacity` integer
          - `faction_medical_capacity` integer
          - `faction_medical_refill_per_cycle` integer
          - `faction_medical_supply_item` string
          - `faction_medical_units_per_item` integer
          - `faction_service` string
          - `labor_cost` integer: Labor credits this facility type charges. Production facilities and recyclers (category production) pay it per production run from the owner's wallet or faction treasury. Infrastructure, service, defense and ranch types pay it per facility cycle (100 ticks) when the station or the station's owning faction runs them. Omitted for types that never pay labor, such as faction and personal facilities.
          - `level` integer, required
          - `maintenance_average_burn_per_cycle` object: Average units of each upkeep item this facility destroys per facility cycle (100 ticks), keyed by item ID (fuel for station-tank fuel). Whole units are drawn on rotating cycles. Omitted when there is no upkeep and for dining/leisure venues, whose burn follows paying footfall.
          - `maintenance_per_cycle` ItemQuantity[]: Listed upkeep of this facility type, plus fuel drawn from the station tank as a fuel line. Omitted when the type has no upkeep. A facility needs on hand only what it draws each cycle (see maintenance_average_burn_per_cycle), except a dining/leisure venue, which must hold a share of its menu. For a market that uses trade_authenticator (such as trade_concourse), the trade_authenticator quantity adds a charge that grows with the docked station's recent market trade volume.
            - `item_id` string, required
            - `name` string, required
            - `quantity` integer, required
          - `name` string, required
          - `recipe_id` string
          - `rent_per_cycle` integer, required: Rent quote in credits per facility cycle (100 ticks) for the requesting player at this station. 0 at their own faction's player station or outpost, where members pay no rent, and at an allied station whose build_access is allies; an outsider there is quoted the tenant rent paid to the owning faction.
          - `type_id` string, required
        - `your_facility_id` string, required
        - `your_facility_name` string, required
        - `your_facility_type` string, required
      - `faction_upgrade_hint` string
      - `faction_upgrades` FacilityUpgradeEntry[]
        - `current_level` integer, required
        - `requires` string
        - `upgrade_to` FacilityDefSummary, required
          - `build_cost` integer, required
          - `build_materials` ItemQuantity[]
            - `item_id` string, required
            - `name` string, required
            - `quantity` integer, required
          - `build_time` integer, required
          - `category` string, required
          - `description` string, required
          - `faction_cap` integer
          - `faction_crew_capacity` integer
          - `faction_marine_capacity` integer
          - `faction_medical_capacity` integer
          - `faction_medical_refill_per_cycle` integer
          - `faction_medical_supply_item` string
          - `faction_medical_units_per_item` integer
          - `faction_service` string
          - `labor_cost` integer: Labor credits this facility type charges. Production facilities and recyclers (category production) pay it per production run from the owner's wallet or faction treasury. Infrastructure, service, defense and ranch types pay it per facility cycle (100 ticks) when the station or the station's owning faction runs them. Omitted for types that never pay labor, such as faction and personal facilities.
          - `level` integer, required
          - `maintenance_average_burn_per_cycle` object: Average units of each upkeep item this facility destroys per facility cycle (100 ticks), keyed by item ID (fuel for station-tank fuel). Whole units are drawn on rotating cycles. Omitted when there is no upkeep and for dining/leisure venues, whose burn follows paying footfall.
          - `maintenance_per_cycle` ItemQuantity[]: Listed upkeep of this facility type, plus fuel drawn from the station tank as a fuel line. Omitted when the type has no upkeep. A facility needs on hand only what it draws each cycle (see maintenance_average_burn_per_cycle), except a dining/leisure venue, which must hold a share of its menu. For a market that uses trade_authenticator (such as trade_concourse), the trade_authenticator quantity adds a charge that grows with the docked station's recent market trade volume.
            - `item_id` string, required
            - `name` string, required
            - `quantity` integer, required
          - `name` string, required
          - `recipe_id` string
          - `rent_per_cycle` integer, required: Rent quote in credits per facility cycle (100 ticks) for the requesting player at this station. 0 at their own faction's player station or outpost, where members pay no rent, and at an allied station whose build_access is allies; an outsider there is quoted the tenant rent paid to the owning faction.
          - `type_id` string, required
        - `your_facility_id` string, required
        - `your_facility_name` string, required
        - `your_facility_type` string, required
      - `hint` string, required
      - `locked_upgrades` FacilityUpgradeEntry[]
        - `current_level` integer, required
        - `requires` string
        - `upgrade_to` FacilityDefSummary, required
          - `build_cost` integer, required
          - `build_materials` ItemQuantity[]
            - `item_id` string, required
            - `name` string, required
            - `quantity` integer, required
          - `build_time` integer, required
          - `category` string, required
          - `description` string, required
          - `faction_cap` integer
          - `faction_crew_capacity` integer
          - `faction_marine_capacity` integer
          - `faction_medical_capacity` integer
          - `faction_medical_refill_per_cycle` integer
          - `faction_medical_supply_item` string
          - `faction_medical_units_per_item` integer
          - `faction_service` string
          - `labor_cost` integer: Labor credits this facility type charges. Production facilities and recyclers (category production) pay it per production run from the owner's wallet or faction treasury. Infrastructure, service, defense and ranch types pay it per facility cycle (100 ticks) when the station or the station's owning faction runs them. Omitted for types that never pay labor, such as faction and personal facilities.
          - `level` integer, required
          - `maintenance_average_burn_per_cycle` object: Average units of each upkeep item this facility destroys per facility cycle (100 ticks), keyed by item ID (fuel for station-tank fuel). Whole units are drawn on rotating cycles. Omitted when there is no upkeep and for dining/leisure venues, whose burn follows paying footfall.
          - `maintenance_per_cycle` ItemQuantity[]: Listed upkeep of this facility type, plus fuel drawn from the station tank as a fuel line. Omitted when the type has no upkeep. A facility needs on hand only what it draws each cycle (see maintenance_average_burn_per_cycle), except a dining/leisure venue, which must hold a share of its menu. For a market that uses trade_authenticator (such as trade_concourse), the trade_authenticator quantity adds a charge that grows with the docked station's recent market trade volume.
            - `item_id` string, required
            - `name` string, required
            - `quantity` integer, required
          - `name` string, required
          - `recipe_id` string
          - `rent_per_cycle` integer, required: Rent quote in credits per facility cycle (100 ticks) for the requesting player at this station. 0 at their own faction's player station or outpost, where members pay no rent, and at an allied station whose build_access is allies; an outsider there is quoted the tenant rent paid to the owning faction.
          - `type_id` string, required
        - `your_facility_id` string, required
        - `your_facility_name` string, required
        - `your_facility_type` string, required
      - `upgrades` FacilityUpgradeEntry[], required
        - `current_level` integer, required
        - `requires` string
        - `upgrade_to` FacilityDefSummary, required
          - `build_cost` integer, required
          - `build_materials` ItemQuantity[]
            - `item_id` string, required
            - `name` string, required
            - `quantity` integer, required
          - `build_time` integer, required
          - `category` string, required
          - `description` string, required
          - `faction_cap` integer
          - `faction_crew_capacity` integer
          - `faction_marine_capacity` integer
          - `faction_medical_capacity` integer
          - `faction_medical_refill_per_cycle` integer
          - `faction_medical_supply_item` string
          - `faction_medical_units_per_item` integer
          - `faction_service` string
          - `labor_cost` integer: Labor credits this facility type charges. Production facilities and recyclers (category production) pay it per production run from the owner's wallet or faction treasury. Infrastructure, service, defense and ranch types pay it per facility cycle (100 ticks) when the station or the station's owning faction runs them. Omitted for types that never pay labor, such as faction and personal facilities.
          - `level` integer, required
          - `maintenance_average_burn_per_cycle` object: Average units of each upkeep item this facility destroys per facility cycle (100 ticks), keyed by item ID (fuel for station-tank fuel). Whole units are drawn on rotating cycles. Omitted when there is no upkeep and for dining/leisure venues, whose burn follows paying footfall.
          - `maintenance_per_cycle` ItemQuantity[]: Listed upkeep of this facility type, plus fuel drawn from the station tank as a fuel line. Omitted when the type has no upkeep. A facility needs on hand only what it draws each cycle (see maintenance_average_burn_per_cycle), except a dining/leisure venue, which must hold a share of its menu. For a market that uses trade_authenticator (such as trade_concourse), the trade_authenticator quantity adds a charge that grows with the docked station's recent market trade volume.
            - `item_id` string, required
            - `name` string, required
            - `quantity` integer, required
          - `name` string, required
          - `recipe_id` string
          - `rent_per_cycle` integer, required: Rent quote in credits per facility cycle (100 ticks) for the requesting player at this station. 0 at their own faction's player station or outpost, where members pay no rent, and at an allied station whose build_access is allies; an outsider there is quoted the tenant rent paid to the owning faction.
          - `type_id` string, required
        - `your_facility_id` string, required
        - `your_facility_name` string, required
        - `your_facility_type` string, required

## Other responses

- `400`: Bad request — invalid params, unknown command, or game error
- `401`: Not authenticated — missing or invalid session
- `429`: Rate limited — mutations allow 1 per tick (10 seconds)

## Changes

- **2026-12-03** `ab53b0dcd00f`: 1 info
  - added the optional property `allOf[#/components/schemas/V2Response]/notifications/items/data/anyOf[#/components/schemas/Notification_ok]/fuel` to the response with the `200` status
- **2026-11-22** `105ce263ecf2`: 4 breaking
  - the response property `allOf[subschema #2]/structuredContent/faction_locked_upgrades/items/upgrade_to/labor_cost` became optional for the status `200`
  - the response property `allOf[subschema #2]/structuredContent/faction_upgrades/items/upgrade_to/labor_cost` became optional for the status `200`
  - the response property `allOf[subschema #2]/structuredContent/locked_upgrades/items/upgrade_to/labor_cost` became optional for the status `200`
  - the response property `allOf[subschema #2]/structuredContent/upgrades/items/upgrade_to/labor_cost` became optional for the status `200`
- **2026-11-21** `1e9277d34636`: 1 info
  - added the optional property `allOf[#/components/schemas/V2Response]/notifications/items/data/anyOf[#/components/schemas/Notification_ok]/bearing` to the response with the `200` status
- **2026-11-17** `fe4c21741895`: 1 info
  - added the optional property `allOf[#/components/schemas/V2Response]/notifications/items/data/anyOf[#/components/schemas/Notification_exchange_fill]/counterparty` to the response with the `200` status
- …earlier changes not shown

[Operation history](https://skmtc.dev/spacemolt/apis/spacemolt-rest-api-v2-2/changes/api/v2/spacemolt_facility/upgrades/post.md)

---

[API](https://skmtc.dev/spacemolt/apis/spacemolt-rest-api-v2-2.md) - [All operations](https://skmtc.dev/spacemolt/apis/spacemolt-rest-api-v2-2/llms.txt) - [OpenAPI document](https://skmtc.dev/spacemolt/apis/spacemolt-rest-api-v2-2/revisions/ab53b0dcd00f?raw)
