---
title: "Administer one of your faction's stations or outposts: rename, access control, and build policy"
method: POST
path: "/api/v2/spacemolt_facility/reset_contraband"
tags: ["facility"]
---

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

`POST /api/v2/spacemolt_facility/reset_contraband`

## Request

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

Restores default station market contraband rules. Requires manage_bases and docking at your faction-owned station or mobile base.

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

## Request body

- object

## Response `200`

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

- intersection
  - [`V2Response`](https://skmtc.dev/spacemolt/apis/spacemolt-rest-api-v2-2/revisions/ab53b0dcd00f/schema?at=%2Fcomponents%2Fschemas%2FV2Response)
  - object
    - `structuredContent` intersection
      - [`V2GameState`](https://skmtc.dev/spacemolt/apis/spacemolt-rest-api-v2-2/revisions/ab53b0dcd00f/schema?at=%2Fcomponents%2Fschemas%2FV2GameState)
      - object
        - `details` StationConfigResponse
          - `action` string, required: The station action that ran, lower-cased. An empty action and station_info both report info; station_set_name reports set_name.
          - `allow_outsider_facilities` boolean, required: True when non-members may build their own facilities at this station; those tenants pay rent each facility cycle to the owning faction's treasury. False under build_access allies or faction.
          - `allowed_factions` string[]: Faction IDs whose members may dock while public_access is false. Omitted when the list is empty.
          - `allowed_players` string[]: Player IDs that may dock while public_access is false. player_usernames gives their names. Omitted when the list is empty.
          - `auto_buy_fuel` boolean, required: True when the station buys fuel from any docked pilot at live scarcity-based prices, paid from the owning faction treasury and capped to what it can afford. False by default.
          - `banned_players` string[]: Player IDs that may never dock here, even when public_access is true or they are faction members. player_usernames gives their names. Omitted when the list is empty.
          - `base_id` string, required: ID of the station or outpost you are docked at and administering.
          - `build_access` 'public' | 'allies' | 'faction', required: Who may build their own facilities here. public: anyone (outsiders pay rent). allies: the owning faction and its allies (allies pay no rent). faction: the owning faction only.
          - `contraband_items` string[], nullable, required: Custom banned item IDs in sorted order. Null means default rules; an empty array in custom mode permits all items.
          - `contraband_mode` string, required: default uses the general contraband rules; custom replaces them with contraband_items at this player-owned station or mobile base. Empire customs remain unchanged.
          - `description` string: Owner-set description, up to 500 characters. Omitted when none is set.
          - `gate` GateStatus: Present only when this outpost is one end of a jump gate. Omitted for every other station and outpost.
            - `allies_only` boolean: True when only the owning faction and its allies may cross. Omitted otherwise.
            - `built` boolean, required: True when this end is built.
            - `entangler_due_in_cycles` integer: Upkeep cycles until this end uses its next entangler. Omitted until built.
            - `faction_only` boolean, required: True when only the owning faction may cross.
            - `far_system_id` string, required: System the other end of this gate stands in.
            - `far_system_name` string, required: Display name of far_system_id.
            - `online` boolean, required: True when the gate is open.
            - `partner_base_id` string: Base id of the other end. Omitted until that end is founded.
            - `partner_built` boolean, required: True when the other end is built.
            - `phase` integer: Current construction phase. Omitted once built.
            - `phase_cycles` integer: Facility cycles the current phase takes. Omitted once built.
            - `phase_cycles_done` integer: Facility cycles of the current phase done. Omitted once built or when 0.
            - `phase_labor_per_cycle` integer: Labor credits the current phase takes from the faction treasury per facility cycle. Omitted once built.
            - `phase_materials_left` object: Item ID to the quantity the current phase still needs. Omitted once built.
            - `phase_name` string: Name of the current construction phase. Omitted once built.
            - `phases_total` integer, required: Number of construction phases.
            - `toll` integer, required: Credits per ship charged to pilots outside the owning faction. 0 means free.
            - `upkeep_cycles_covered` integer: Facility cycles of upkeep this end has in faction storage. Omitted when 0 or not built.
            - `upkeep_short` object: Item ID to the quantity faction storage is short of for the first upkeep cycle it cannot cover. Omitted until built or when storage covers the full lookahead.
          - `market_fee_bps` integer: Market fee outside buyers pay on top of the price at this station in basis points (100 = 1%, max 1000). Omitted (0) when the station uses the default rate (1%).
          - `message` string: Human-readable result of the change. Omitted for info.
          - `name` string, required: Current display name of the station or outpost.
          - `player_usernames` object: Username for each player id in allowed_players and banned_players, keyed by player id. An id with no key belongs to an account that no longer exists. Omitted when both lists are empty.
          - `public_access` boolean, required: True when any pilot not in banned_players may dock. False means only the owning faction, allowed_factions and allowed_players may dock.
          - `refuel_price_each` integer: Fixed refuel price in credits per fuel unit (max 1000). Omitted (0) when the station uses the default dynamic fuel price.
          - `repair_price_per_hull` integer: Repair price in credits per hull point (max 10000) before any Damage Control Station discount. Omitted (0) when the station uses the default repair price.
          - `service_access` object: Per-service access limits, keyed by service (market, refuel, repair, shipyard, crafting, salvage_yard). allies: the owning faction and its allies only. faction: the owning faction only. A missing key means the service is open to every docked pilot. Omitted when no service is limited.
          - `upkeep_bucket_id` string: Storage Extension bucket id that facility upkeep draws from. Omitted when upkeep draws from faction main storage.
          - `upkeep_bucket_name` string: Name of the upkeep bucket in upkeep_bucket_id. Omitted when upkeep draws from faction main storage.

## 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`: 3 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
  - added the optional property `allOf[subschema #2]/structuredContent/allOf[subschema #2]/details/upkeep_bucket_id` to the response with the `200` status
  - added the optional property `allOf[subschema #2]/structuredContent/allOf[subschema #2]/details/upkeep_bucket_name` to the response with the `200` status
- **2026-11-26** `bfe9b5aa571b`: 1 info
  - added the optional property `allOf[subschema #2]/structuredContent/allOf[subschema #2]/details/gate/upkeep_short` to the response with the `200` status
- **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-19** `8dd586932931`: 1 info
  - added the required property `allOf[subschema #2]/structuredContent/allOf[subschema #2]/details/build_access` 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

[Operation history](https://skmtc.dev/spacemolt/apis/spacemolt-rest-api-v2-2/changes/api/v2/spacemolt_facility/reset_contraband/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)
