Skip to main content
POST
/
game
/
create
create a match with config
curl --request POST \
  --url http://localhost:3917/game/create \
  --header 'Content-Type: application/json' \
  --data '
{
  "mode": "deathmatch",
  "respawn_delay": 3,
  "score_limit": 10,
  "time_limit": 300
}
'
{
  "ok": true,
  "message": "<string>"
}

Body

application/json

Match configuration. All fields optional: mode (default "deathmatch"), score_limit (10), time_limit seconds (300), respawn_delay seconds (3).

The body is of type any.

Response

200 - application/json

Match created and started.

ok
boolean
required
message
string | null