battle

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

Changed on

Sets via id the stance your active ship opens at when a fight it did not choose pulls it in (pirate, police or player attack, fleet or faction call, jump or undock into a fight): auto, fire, evade, brace or flee. auto is fire if the ship has a weapon or remote repairer, else flee. A fight you start opens at fire. Works in or out of battle; a change applies from the next battle. Resets to auto when the ship changes owner.

Example: POST /api/v2/spacemolt_battle/default_stance with body {"id":"auto"}

post/api/v2/spacemolt_battle/default_stance

Request

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

Request body

object required
id, 'auto' | 'fire' | 'evade' | 'brace' | 'flee' required

Default stance: auto, fire, evade, brace or flee.

Response

Result. structuredContent type: BattleResponse

intersection required
object
structuredContent, BattleResponse

Example response

{
  "notifications": [
    {
      "data": {
        "reason": "stalemate",
        "winning_side": -1
      }
    }
  ]
}

Changes

    • info

      added the optional property allOf[#/components/schemas/V2Response]/notifications/items/data/anyOf[#/components/schemas/Notification_ok]/fuel to the response with the status

    • info

      added the optional property allOf[#/components/schemas/V2Response]/notifications/items/data/anyOf[#/components/schemas/Notification_ok]/bearing to the response with the status