Delete game API: Difference between revisions

From War.app Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
The '''Delete Game API''' allows you to delete WarLight games that you created.   
The '''Delete Game API''' allows you to delete War.app games that you created.   


It can only delete games that are still in the lobby (i.e., the game has not yet started since not all players have accepted it.)  It's functionally equivalent to the Delete Game button that is already present in the lobby.
It can only delete games that are still in the lobby (i.e., the game has not yet started since not all players have accepted it.)  It's functionally equivalent to the Delete Game button that is already present in the lobby.
Line 5: Line 5:
== Usage ==
== Usage ==


To delete a game, simply POST some JSON to http://warlight.net/API/DeleteLobbyGame that contains your credentials and the ID of the game you wish to delete.  Use the following format as a guide:  
To delete a game, simply POST some JSON to https://www.war.app/API/DeleteLobbyGame that contains your credentials and the ID of the game you wish to delete.  Use the following format as a guide:  





Latest revision as of 02:35, 18 April 2026

The Delete Game API allows you to delete War.app games that you created.

It can only delete games that are still in the lobby (i.e., the game has not yet started since not all players have accepted it.) It's functionally equivalent to the Delete Game button that is already present in the lobby.

Usage

To delete a game, simply POST some JSON to https://www.war.app/API/DeleteLobbyGame that contains your credentials and the ID of the game you wish to delete. Use the following format as a guide:


 {
   "Email": "your@email.com",
   "APIToken": "yourApiToken",
   "gameID": 1234
 }