Skip to main content
POST
/
api
/
v1
/
cubic
/
createGame
Create Game
curl --request POST \
  --url http://50.187.81.221:4000/api/v1/cubic/createGame \
  --header 'Content-Type: application/json' \
  --data '
{
  "gameID": "uniqueGame123",
  "teams": [
    {
      "name": "RedTeam"
    },
    {
      "name": "BlueTeam"
    }
  ]
}
'

Body

application/json

Game creation details including a unique game ID and participating teams.

Data transfer object for creating a new game.

gameID
string
required

A unique identifier for the game instance.

teams
object[]
required

An array of teams participating in the game.

Response

201

Game successfully created.