POST
/
api
/
v1
/
cubic
/
moveShip
Move Ship
curl --request POST \
  --url http://50.187.81.221:4000/api/v1/cubic/moveShip \
  --header 'Content-Type: application/json' \
  --data '{
  "gameID": "uniqueGame123",
  "direction": "FORWARD",
  "movingShip": {
    "teamName": "RedTeam",
    "shipName": "RedScout1"
  }
}'

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.

Response

201

Ship successfully moved.