Integrations

Change Twitch

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

Chat commands (scene, effect, flash, colour, strobe, drop) and reactions to follows, subs, raids and cheers.

Request body application/json

chatobject

{enabled, channel, prefix, who, cooldownSec, userCooldownSec, commands, scenes, effects}.

clientIdstring
eventsOnboolean
targetstring
eventsobject

A reaction per event: follow, subscribe, resub, gift, raid, cheer.

Responses

200OKapplication/json
object

The Twitch settings and 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.

Request
curl -X PATCH 'http://localhost:8080/api/integrations/twitch' \
  -H 'content-type: application/json' \
  -d '{
  "chat": {
    "enabled": true,
    "channel": "mychannel",
    "prefix": "!"
  }
}'
Response
{}
Edit on GitHub