Update results using API
-
Hello there,
I’m trying to use SportPress API to create some events.
Right now I’m able to create an event with its date, time, title, clubs involved and basic info. Whenever I try to create it with its main results, it’s created without that information.POST https://sports.footters.com/wp-json/sportspress/v2/events/ with the following body:
{ "title": "Test", "content": "Test", "excerpt": "Test", "leagues": [ 1 ], "teams": [ 1, 2 ], "minutes": "90", "day": "2020/12/05", "date": "2020-12-05 18:00:00", "main_results":["2","0"], "results": { "1": { "goals": "2" }, "2": { "goals": "0" } } }
I can modify the result using the website but I would like to do it using your API in order to import several matches from our database.
Thank you so much.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Update results using API’ is closed to new replies.