Games

Change a game

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

Lights that react to the game: health, flashbangs, the bomb, kills, rounds (CS2), mana, Roshan, day and night (Dota 2). Targets are all, off, zone:<id> or dev:<id>.

Path parameters

gamestringrequired

cs2 or dota2.

Request body application/json

enabledboolean

Turning it on makes its token.

intensitynumber
0 to 1
modestring
One of "blend" "takeover"
healthTargetstring
effectsTargetstring
manaTargetstring
ambientTargetstring
killsboolean
flashbangboolean
bombboolean
roundsboolean
roshanboolean
daynightboolean

Responses

200OKapplication/json
enabledboolean
tokenstring
intensitynumber
0 to 1
modestring
One of "blend" "takeover"
namestring
filestring
folderstring
statusobject

Live game status.

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 PATCH 'http://localhost:8080/api/integrations/games/cs2' \
  -H 'content-type: application/json' \
  -d '{
  "enabled": true,
  "intensity": 0.8,
  "mode": "blend"
}'
Response
{
  "enabled": true,
  "token": "string",
  "intensity": 0,
  "mode": "blend",
  "name": "string",
  "file": "string",
  "folder": "string",
  "status": {}
}
Edit on GitHub