Skip to content

Use cases for WebHooks in Arena #158

Answered by eveyrat
delros asked this question in General
Feb 15, 2024 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

Hi @delros,

You can configure Webhooks through the UI available at /bracket/webhook/. You can "listen" for different events (Insert, Update, Delete), on different entities (Fight, SportEvent, etc.), and get notified on the endpoint of your choice.

Arena will trigger a POST request to your endpoint.
I'd suggest creating a Test Webhook for inspecting the payload using a service like https://webhook.site

The payload is very minimal. It contains the Entity, ID and action. Then up to you to do further API calls depending on your use case:

{
  "action": "<action>",
  "entity": "<entity>",
  "id": "<entity_id>"
}

Example:

{
  "action": "update",
  "entity": "Fight",
  "id": "1eec01fa-25d8-6c3a…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@delros
Comment options

Answer selected by delros
Comment options

You must be logged in to vote
1 reply
@delros
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants