Endpoint: /newgame
Request Data Parameters
Parameter |
Required |
Type |
Description |
gametitle |
yes |
STRING |
|
Example Request Payload
{
"gametitle": "your new game"
}
Description
Saves a new game and returns the new game_id.
Response Data Parameters
Parameter |
Required |
Type |
Description |
error |
yes |
BOOLEAN |
|
message |
yes |
INT |
|
game_id |
yes |
INT |
|
Example Response
{
"error":false,
"message":"Success",
"game_id": 1
}
Example Error Response
{
"error":true,
"message":"Invalid API Key",
}