Zum Inhalt springen

PUT/webhooks/:webhookId/tournaments/:tournamentId

Auch genannt: Benachrichtigung

Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

Subscribe the webhook to a public tournament. From then on the webhook receives the events of that tournament, as long as the organizer shares it on their result page. Works with API tokens and public API keys.

Errors: 403 TOURNAMENT_NOT_PUBLIC (unknown, other sport, or not shared), 403 TOURNAMENT_FINISHED, 400 TOO_MANY_SUBSCRIPTIONS (max 25), 403 WEBHOOK_NOT_FOUND (not your webhook).

Parameter In Example
webhookId path 65f1c2a0e1b2c3d4e5f60718
tournamentId path tio:4AHchFkVAecs2
{
"_id": "65f1c2a0e1b2c3d4e5f60718",
"name": "OBS Overlay",
"url": "https://overlay.example.com/hook",
"authToken": "shared-secret",
"disabled": false,
"tournamentIds": ["tio:T5MMiW8IVuWMp"]
}