faction

Declare war on another faction

Changed on

Requires manage_diplomacy permission. Both factions enter war state. Kills are tracked. Targets are notified. Accepts faction ID or 4-character faction tag (e.g. NOVA).

Example: POST /api/v2/spacemolt_faction/declare_war with body {"id":"...","text":"optional casus belli"}

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

post/api/v2/spacemolt_faction/declare_war

Request

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

Request body

idstring required

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

textstring

Reason for war (optional casus belli)

Response

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

resultunknown

Changes

    • info

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

    • info

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