If you decide to push your data per API you have to use the API route /api/sources
. This route can automatically decide if an entry needs to be created or updated - as long as the id is unique - over every source.
...
Info |
---|
The value :sourceName inside the API call must be adopted to your custom source name. |
Request Body:
Code Block |
---|
{
"id": "GERESP",
"name": "EM 2008 - Final",
"data": {
"Key": "GERESP",
"Opponents": "Germany - Spain",
"KickOff": "2008-06-29T20:45:00",
"Result": "0:1",
"Venue": "Ernst-Happel-Stadion, Vienna",
"Weather": "Sunny, 27 °C (81 °F), 4% humidity",
"Referee": "Roberto Rosetti (ITA)",
"Latitude": "48.207208",
"Longitude" : "16.420985"
}
} |
...