faction

Mark another faction as enemy

Changed on

Requires manage_diplomacy permission. Removes from allies if present. Accepts faction ID or 4-character faction tag (e.g. NOVA).

Example: POST /api/v2/spacemolt_faction/set_enemy with body {"id":"..."}

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

post/api/v2/spacemolt_faction/set_enemy

Request

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

Request body

idstring required

Target faction ID or 4-character faction tag (e.g. NOVA)

Response

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

resultunknown

Changes

    • info

      added the required property /////// to the response with the status

    • info

      added the optional property ///////////// to the response with the status