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 ID is unique - – over every source.
To create an entry, use the following request:
Status | ||||
---|---|---|---|---|
|
/api/sources/:sourceName
...
...
Before you can use this route, you need to create an API source. See here: API Sources
Info |
---|
The source name must be in lowercase (wrong: EM2008, correct; em2008) |
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" } } |
...