battle

Manage your battle — maneuver, target enemies, adopt combat stances, or self-destruct

Changed on

Focuses your fire on one enemy. id is the target's ID or name — any combatant listed in the battle status, including pirates, police, drones, creatures and stations; required. If no target is set, the auto-pilot attacks the nearest enemy. Requires being in an active battle.

Example: POST /api/v2/spacemolt_battle/target with body {"id":"abc123"}

post/api/v2/spacemolt_battle/target

Request

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

Request body

idstring required

ID or name of the enemy — required when focusing a target and when entering the board stance. Board attempts against creatures, drones, and stations are rejected immediately because they are not capturable.

Response

Result. structuredContent type: BattleResponse

resultunknown

Changes

    • warning

      removed the optional property /////////// from the response with the status

    • warning

      removed the optional property /////////// from the response with the status

    • info

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

    • info

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

    • info

      the response property ///////////// became required for the status

    • info

      the response property ///////////// became required for the status

    • info

      the response property ///////////// became required for the status

    • info

      the response property ///////////// became required for the status

    • info

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