---
title: "Dismantle a faction outpost you're docked at, packing it back into an Outpost Kit, or tear down a jump gate"
method: POST
path: "/api/v2/spacemolt_facility/dismantle_outpost"
tags: ["facility"]
---

# Dismantle a faction outpost you're docked at, packing it back into an Outpost Kit, or tear down a jump gate

`POST /api/v2/spacemolt_facility/dismantle_outpost`

## Request

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

Must be docked at one of your faction's outposts (not a full station). Requires the ManageBases permission. Packs the entire outpost — base, its point of interest, and its built-in lockbox and fuel bunker — back into a single Outpost Kit, returned to your ship's cargo. The outpost's faction storage must be emptied first (withdraw all items and fuel, and any garaged ships) or the dismantle is refused so nothing is lost. Every ranch on the outpost must be dismantled first with faction_dismantle, and any facility still dismantling must finish packaging. The founding fee is NOT refunded — you recover the kit and nothing else. You'll need free cargo space for the returned kit. After dismantling you're undocked at the point of interest the outpost was deployed beside. At a jump gate end, dismantling removes both ends and closes the lane: no Outpost Kit comes back, each fully built end returns its lane_anchor, the founding fees and construction materials are not refunded, and both ends' faction storage must be empty.

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

## Request body

- object

## Response `200`

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

- 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` DismantleOutpostResponse
          - `auto_docked` boolean: True when the engine docked you automatically before running this command, because the command requires being docked. Omitted when no automatic dock happened.
          - `auto_undocked` boolean: True when the engine undocked you automatically before running this command, because the command requires being undocked. Omitted when no automatic undock happened.
          - `base_id` string, required
          - `fee_refunded` integer, required
          - `hint` string, required
          - `items_returned` object, required: Items put in your cargo by the dismantle, by item ID and quantity: one outpost_kit for an outpost, or one lane_anchor for each fully built end of a jump gate. Empty when a gate had no built end.
          - `kit_item` string, required
          - `kit_refunded` boolean, required
          - `name` 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-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
- **2026-11-17** `02d3343b9802`: 1 info
  - added the optional property `allOf[subschema #2]/structuredContent/allOf[#/components/schemas/V2GameState]/ship/default_stance` to the response with the `200` status
- **2026-11-16** `99b2e0e72111`: 1 info
  - added the required property `allOf[subschema #2]/structuredContent/allOf[subschema #2]/details/items_returned` to the response with the `200` status

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