Game
PUT /games/{id}/{element}
Changed onCreate or update a new game item
Request
- Base URL/api/v2 (relative, and the document was published on a file host, not at the API’s origin)
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"id": "sample-game",
"element": "score",
"value": 3
}Response
Return the newly created game item with the specified id
Example response
{
"id": "sample-game",
"element": "score",
"value": 3
}Changes
- info
endpoint added
- info
- breaking
api removed without deprecation
- breaking