Skip to main content
POST
Move Ship

Body

application/json

Details for moving a ship, specifying the game ID, the direction of movement, and the ship to be moved.

Data transfer object for instructing a ship to move.

gameID
string
required

The unique identifier of the game.

direction
enum<string>
required

The direction in which the ship should move relative to its current position.

Available options:
CURRENT,
UP,
DOWN,
LEFT,
RIGHT,
FORWARD,
BACK
movingShip
object
required

The ship that is performing the move action.

Response

201

Ship successfully moved.