# WebHooks

eb Hooks need only to be created when you want to use the [Triggered Action](https://docs.dbnetsoft.com/dbnetsoft/raceresultexchange/operation-modes/triggered-actions) feature (e.g. print a bib when new competitor is created) on participant changes.

Depending whether you work online or offline, your RR12 event needs to be configured slightly different.

## Online

Our RemoteRedirect webservice provides a bridge between RR12 working online that can only access public web servers and RRExchange running locally.&#x20;

{% hint style="info" %}
Protocol is https and host is raceresult.remoteredirect.com:\
`https://raceresult.remoteredirect.com`
{% endhint %}

The following web hooks need to be configured in RR12 (Main Window - Access Rights/Simplae API - Web Hooks):

<table><thead><tr><th width="138">Type</th><th>URL</th><th width="96">Filter</th><th>Fields</th></tr></thead><tbody><tr><td>New Participant</td><td><code>https://raceresult.remoteredirect.com/api/raceresult/newparticipant</code></td><td></td><td><code>ID;Bib;Lastname</code></td></tr><tr><td>Participant updated</td><td><code>https://raceresult.remoteredirect.com/api/raceresult/updateparticipant</code></td><td></td><td><code>ID;Bib;Lastname</code></td></tr></tbody></table>

<figure><img src="https://2601835662-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk5GLs0WFtuWoGrMBjgcM%2Fuploads%2FbaLsj5tLyym2fTKGjmBM%2Fimage.png?alt=media&#x26;token=3253cc93-dbf4-4ca8-92e5-216a690e56ca" alt="" width="375"><figcaption><p>RR12 Configuration when working online</p></figcaption></figure>

## Offline

When working offline (e.g. checking out the event and using the local race result Web Server, RRExchange acts a a server to receive web hooks.

{% hint style="info" %}
Protocol is http (not https) and host is localhost:8181 (no www, take care with the :):\
`http://localhost:8181`
{% endhint %}

The following web hooks need to be configured in RR12 (Main Window - Access Rights/Simple API - Web Hooks):

<table><thead><tr><th width="138">Type</th><th>URL</th><th width="96">Filter</th><th>Fields</th></tr></thead><tbody><tr><td>New Participant</td><td><code>http://localhost:8181/api/raceresult/newparticipant</code></td><td></td><td><code>ID;Bib;Lastname</code></td></tr><tr><td>Participant updated</td><td><code>http://localhost:8181/api/raceresult/updateparticipant</code></td><td></td><td><code>ID;Bib;Lastname</code></td></tr></tbody></table>

<figure><img src="https://2601835662-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk5GLs0WFtuWoGrMBjgcM%2Fuploads%2FiAAD27MTIweVZX1h08yT%2Fimage.png?alt=media&#x26;token=d4e8aafa-b611-4a67-8c49-8fee7cc612fd" alt="" width="375"><figcaption><p>RR12 Configuration when working offline</p></figcaption></figure>
