Link a Twitch stream to a calendar event
/api/twitch/streams/{id}/eventSets the calendar event a stream is shown under, or clears it with a null eventId. Modbot links a stream to the one event on when it started and leaves it unlinked when events overlap; a person's choice here is never changed by the poll.
Needs the ManageCalendar permission.
An API key, made on Settings, API keys. Every key starts with mbk_.
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X PUT "https://example.com/api/twitch/streams/string/event" \ -H "Content-Type: application/json" \ -d '{ "eventId": null }'{ "id": "string", "title": null, "category": null, "viewers": 0, "peakViewers": 0, "startedAt": "2019-08-24T14:15:22Z", "endedAt": null, "eventId": null, "eventTitle": null, "link": null}List recent Twitch streams GET
The channel's most recent streams as the poll saw them, newest first, each with the calendar event it is linked to. For choosing a stream to link to an event. Needs the `ManageCalendar` permission.
Get Twitch health GET
What the Health page's Twitch card shows: the last Check's problem, the last poll's problem, when Twitch last answered, and until when Twitch is limiting Modbot. Needs the `ViewOperationalLog` permission.