# Generic import

Paste the URL of your hosted data to synchronize participants and devices with the event in your RACEMAP account. Import data from multiple online files, also. The generic import checks the format of your hosted data and replies to which parameters are imported.&#x20;

![Past URLs of online sources to import the participants into Racemap event](https://1672210197-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LSRNxaH2Ju9Flr7JhJD%2Fuploads%2FoUc8p897lKqN1j6ndEcH%2Fscreenshot-racemap.com-2023.07.12-16_45_31.png?alt=media\&token=43c49d04-89d8-4460-84a9-b05a79bf5362)

<figure><img src="https://1672210197-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LSRNxaH2Ju9Flr7JhJD%2Fuploads%2FHmbB2UDDXKwUN9iGuEd2%2Fscreenshot-racemap.com-2023.07.12-16_47_26.png?alt=media&#x26;token=9c19bfbf-4cde-4de5-b5f1-7841c63104af" alt=""><figcaption><p>Detailed description of errors when import fails for specific entries</p></figcaption></figure>

{% hint style="success" %}
Test the API with your RACEMAP event. Use the sample files.

* json sample file: <https://static-cdn.racemap.com/importSamples/GenericImportSampleArray.json>
* xml sample file: <https://static-cdn.racemap.com/importSamples/GenericImportSample.xml>
  {% endhint %}

### Format of import data

<table data-full-width="false"><thead><tr><th width="188">Field</th><th width="311">Description</th><th width="294">Sample</th><th data-hidden></th></tr></thead><tbody><tr><td><code>importId</code></td><td>Required user-defined ID, unique within Racemap event, a new <code>importID</code> creates a new participant</td><td><code>"import_DWBK"</code> or <code>"03487"</code> or <code>"1sl71kaut2"</code></td><td></td></tr><tr><td><code>name</code></td><td>Name</td><td><code>"Max"</code> or <code>"🔥"</code> or <code>"40012"</code></td><td></td></tr><tr><td><code>startNumber</code></td><td>Bib number</td><td><code>"40012"</code> or <code>"🔥"</code> or <code>"Max"</code></td><td></td></tr><tr><td><code>startTime</code></td><td>Time in UTC of first possible geolocation, earlier location data is ignored for visualization and leaderboard</td><td><code>"2022-01-24T15:00:00.000Z"</code></td><td></td></tr><tr><td><code>endTime</code></td><td>Time in UTC of last possible geolocation, later location data is ignored for visualization and leaderboard</td><td><code>"2022-01-24T23:00:00.000Z"</code></td><td></td></tr><tr><td><code>key</code></td><td>No import, if value of <code>key</code> does not belong to Racemap event</td><td><code>"3Z2GPX"</code></td><td></td></tr><tr><td><code>markerColor</code></td><td>Marker color in visualization, hex code</td><td><code>"#023d10"</code></td><td></td></tr><tr><td><code>tags.age</code> or<br><code>tags.sex</code></td><td>Attributes to filter participants eg. age group or nation, format</td><td><code>"35"</code> or <code>"male"</code> or <code>"Island"</code></td><td></td></tr><tr><td><code>times.start</code></td><td>Timestamp in UTC of start detection, considered in the leaderboard; <code>startTime</code> used instead, if import doesn't contain <code>times.start</code></td><td><code>"2022-01-24T15:25:10.000Z"</code></td><td></td></tr><tr><td><code>times.end</code></td><td>Timestamp in UTC of finish detection, considered in the leaderboard; <code>endTime</code> used instead, if import doesn't contain <code>times.end</code></td><td><code>"2022-01-24T22:53:45.000Z"</code></td><td></td></tr><tr><td><code>times.5km</code> or <code>times.loop</code></td><td>Timestamp in UTC of read from split</td><td><code>"2022-01-24T20:17:24.000Z"</code></td><td></td></tr><tr><td><code>device.id</code></td><td>IMEI of GPS unit or transponder ID</td><td><code>"4106050246"</code> or <code>"RRPing_ZDKAR32"</code> or <code>"RRPing_70761"</code></td><td></td></tr><tr><td><code>device.class</code></td><td>Device class</td><td><code>"Mobile"</code> or <code>"Tracker"</code> or <code>"Upload"</code> or <code>"Transponder"</code> or <code>"null"</code></td><td></td></tr><tr><td><code>device.type</code></td><td>Device type</td><td><code>"GL320-MG"</code> or <code>"GL300"</code> or <code>"LK106"</code> or <code>"active"</code> or <code>"passive"</code> or <code>"null"</code></td><td></td></tr></tbody></table>

{% tabs %}
{% tab title="json" %}
{% code lineNumbers="true" %}

```javascript
[
  {
    "importId": "UniqueImportID_0",
    "name": "Petra Pan Minimal",
    "startNumber": "A1206",
    "tags.age": "25",
    "tags.sex": "w"
  },
  {
    "importId": "UniqueImportID_1",
    "name": "Peter Pan With Color",
    "startNumber": "A1207",
    "markerColor": "#4d79ff",
    "tags.age": "35",
    "tags.sex": "m"
  },
  {
    "importId": "UniqueImportID_3",
    "name": "Peter Pan With Tracker and specific type/class",
    "startNumber": "A1209",
    "device.class": "Tracker",
    "device.type": "Gl300",
    "device.id": "001111112222223"
  },
  {
    "importId": "UniqueImportID_4",
    "name": "Peter Pan With Times",
    "startNumber": "A1210",
    "times.start": "2020-04-24T14:30:06.708Z",
    "times.end": "2020-04-24T15:30:06.708Z"
  },
  {
    "importId": "UniqueImportID_4",
    "name": "Peter Pan With Start and End Times",
    "startNumber": "A1210",
    "startTime": "2020-04-25T14:30:06.708Z",
    "endTime": "2020-04-25T15:30:06.708Z"
  }
]
```

{% endcode %}
{% endtab %}

{% tab title="xml" %}

<pre class="language-xml" data-line-numbers><code class="lang-xml">&#x3C;root>
  &#x3C;starters>
<strong>    &#x3C;importId>UniqueImportID_0&#x3C;/importId>
</strong>    &#x3C;name>Petra Pan Minimal&#x3C;/name>
    &#x3C;startNumber>A1206&#x3C;/startNumber>
    &#x3C;tags>
       &#x3C;age>25&#x3C;/age>
       &#x3C;sex>w&#x3C;/sex>
    &#x3C;/tags>
  &#x3C;/starters>
<strong>  &#x3C;starters>
</strong>    &#x3C;importId>UniqueImportID_1&#x3C;/importId>
    &#x3C;name>Peter Pan With Color&#x3C;/name>
    &#x3C;startNumber>A1207&#x3C;/startNumber>
    &#x3C;markerColor>#4d79ff&#x3C;/markerColor>
    &#x3C;tags>
<strong>      &#x3C;age>35&#x3C;/age>
</strong>     &#x3C;sex>m&#x3C;/sex>
    &#x3C;/tags>
  &#x3C;/starters>
  &#x3C;starters>
    &#x3C;importId>UniqueImportID_2&#x3C;/importId>
    &#x3C;name>Peter Pan With Tracker&#x3C;/name>
    &#x3C;startNumber>A1208&#x3C;/startNumber>
    &#x3C;devices>
      &#x3C;class>Tracker&#x3C;/class>
      &#x3C;type>Gl300&#x3C;/type>
      &#x3C;id>001111112222223&#x3C;/id>
    &#x3C;/devices>
  &#x3C;/starters>
  &#x3C;starters>
    &#x3C;importId>UniqueImportID_3&#x3C;/importId>
    &#x3C;name>Peter Pan With Times&#x3C;/name>
    &#x3C;startNumber>A1209&#x3C;/startNumber>
    &#x3C;times>
      &#x3C;start>2020-04-24T14:30:06.708Z&#x3C;/start>
      &#x3C;end>2020-04-24T15:30:06.708Z&#x3C;/end>
      &#x3C;loop>2020-04-24T15:15:06.708Z&#x3C;/loop>
    &#x3C;/times>
  &#x3C;/starters>
  &#x3C;starters>
    &#x3C;importId>UniqueImportID_4&#x3C;/importId>
    &#x3C;name>Peter Pan With Start and End Times&#x3C;/name>
    &#x3C;startNumber>A1210&#x3C;/startNumber>
    &#x3C;startTime>2020-04-25T14:30:06.708Z&#x3C;/startTime>
    &#x3C;endTime>2020-04-25T15:30:06.708Z&#x3C;/endTime>
  &#x3C;/starters>
&#x3C;/root>
</code></pre>

{% endtab %}
{% endtabs %}

### Filter input by tag

You can filter the incoming participants by a single tag category. To achieve this, activate the filtering option using the filter symbol. Subsequently, select the category and the specific tag values to be imported.

<figure><img src="https://1672210197-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LSRNxaH2Ju9Flr7JhJD%2Fuploads%2FyVhofzMhV6cSw44W4Ei3%2Fgrafik.png?alt=media&#x26;token=07ee90f3-5cb0-46a3-ae88-ed0b9155f49d" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
By default, we import every participant who does not have the selected filter category. To prevent this, you must assign a tag to the participant and set the value to `none`, for example.
{% endhint %}

### RACE RESULT lists

Use predefined lists to import and synchronize participants and devices into Racemap within seconds.

{% hint style="info" %}
Download templates\
\
[**Download full sample**](https://drive.google.com/uc?id=1LnXjkS0P7A7J0AOTE914Qjaa1n3xwBZi\&export=download) with `importId`, `name`, `startNumber`, `markerColor`, `tags.age`, `device.id`, `device.class`, `device.type`, `times.start`, `times.loop`, `times.finish` :  \
\
[**Download minimal sample**](https://drive.google.com/uc?id=1iw1HUnHUy6XXIe_KaWvOfMZcXPK3hn0h\&export=download) with `importId`, `name`, `startNumber`, `markerColor`, `tags.age`, `device.id`, `times.start`, `times.finish` :&#x20;
{% endhint %}

**Upload template file**

Upload the list template in RACE RESULT, Lists, Import icon

<figure><img src="https://1672210197-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LSRNxaH2Ju9Flr7JhJD%2Fuploads%2FJHkYkG4hG10ef8MqVLJq%2FScreenshot%202026-02-23%20161503.png?alt=media&#x26;token=5719e707-b5a5-405d-8226-2433706ad1ed" alt=""><figcaption></figcaption></figure>

The new "List Template full" is shown under Lists, Participants.&#x20;

<figure><img src="https://1672210197-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LSRNxaH2Ju9Flr7JhJD%2Fuploads%2FBst5j8pQmKAzVp6AEOmB%2FScreenshot%202026-02-23%20162334.png?alt=media&#x26;token=8cc07299-238b-45ff-a43c-817c4bb2e61c" alt=""><figcaption></figcaption></figure>

**Activate access**&#x20;

Enable the access to the list in Basic Settings, Access Rights.&#x20;

* Check the "Active" field&#x20;
* Select "List" in Type field&#x20;
* Select the "List Template full" list in Details field&#x20;
* Select JSON&#x20;
* Copy the link &#x20;

<figure><img src="https://1672210197-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LSRNxaH2Ju9Flr7JhJD%2Fuploads%2FoFpJNb1jktcSnLMth3ha%2FScreenshot%202026-02-23%20162645.png?alt=media&#x26;token=f8bcca29-2a5f-4a18-9df3-fc17962862f1" alt=""><figcaption></figcaption></figure>

**Past the link**

Past the link in RACEMAP, Generic Import field

<figure><img src="https://1672210197-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LSRNxaH2Ju9Flr7JhJD%2Fuploads%2FMvCXkRj1mfCYIDIBRdfz%2Fscreenshot-racemap.com-2023.09.29-14_28_08%20(1).png?alt=media&#x26;token=e3b2f45d-5d83-47c1-b604-2deb533964bf" alt=""><figcaption></figcaption></figure>
