Games

Test a game event

POST/api/integrations/games/{game}/test
Admin. Needs an unlock token (x-tempolight-token) while a PIN lock is set; without a lock, anyone can call it.

Pretends it happened.

Path parameters

gamestringrequired

cs2 or dota2.

Request body application/json

whatstringrequired
One of "flash" "bomb" "kill" "win" "lose" "roshan" "night" "day" "low"

Responses

200OKapplication/json
oktruerequired
400The body isn't valid JSON, or a value is wrong.application/json
errorstringrequired

What went wrong, in a sentence for people.

403Locked, or not allowed.application/json
errorstringrequired

What went wrong, in a sentence for people.

404No such id.application/json
errorstringrequired

What went wrong, in a sentence for people.

Request
curl -X POST 'http://localhost:8080/api/integrations/games/cs2/test' \
  -H 'content-type: application/json' \
  -d '{
  "what": "bomb"
}'
Response
{
  "ok": true
}
Edit on GitHub