---
title: "POST /planet/Defend"
method: POST
path: "/planet/Defend"
---

# POST /planet/Defend

`POST /planet/Defend`

## Request

- Base URL: `https://localhost:3000/api`
- URL: `https://localhost:3000/api/planet/Defend`
- Auth: none declared

Attacks to the planet with given weapon.

## Request body

- object
  - `weaponName` string, required
  - `planetName` string, required

## Response `200`

Example attack result

## Other responses

- `422`: Missing parameters

## Changes

- **2019-07-12** `4fd45d27b6c6`: 1 info
  - endpoint added
- **2019-07-12** `40280ca58cd5`: 1 breaking
  - api path removed without deprecation
- **2019-07-09** `7c98ed8fa17a`: 3 info
  - api operation id `PlanetServiceDefendMethod` removed and replaced with ``
  - api tag `PlanetServices` removed
  - added the non-success response with the status `422`
- **2019-07-02** `486d1f6ec398`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/pankod/apis/pankod-moleculerjs-boilerplate/changes/planet/Defend/post.md)

---

[API](https://skmtc.dev/pankod/apis/pankod-moleculerjs-boilerplate.md) - [All operations](https://skmtc.dev/pankod/apis/pankod-moleculerjs-boilerplate/llms.txt) - [OpenAPI document](https://skmtc.dev/pankod/apis/pankod-moleculerjs-boilerplate/revisions/e435e2b867fd?raw)
