Skip to main content
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.

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.