Title: Update results using API
Last modified: February 17, 2021

---

# Update results using API

 *  Resolved [alvarocece](https://wordpress.org/support/users/alvarocece/)
 * (@alvarocece)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/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/](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)

 *  [Roch](https://wordpress.org/support/users/rochesterj/)
 * (@rochesterj)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/update-results-using-api/#post-14064166)
 * Hi there!
 * Thanks for reaching out.
 * Since this is related to custom coding (the code you create to interact with 
   the API) we can’t help you via support. But I’m leaving this one open in case
   anyone from our community (or our dev team) wants to chime in.
 * Thanks!
 *  Thread Starter [alvarocece](https://wordpress.org/support/users/alvarocece/)
 * (@alvarocece)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/update-results-using-api/#post-14067537)
 * Thanks, [@rochesterj](https://wordpress.org/support/users/rochesterj/)!
 * If anyone has managed to update/add results to an event via API I would really
   appreciate your wisdom.
 * Thank you.
 *  Plugin Author [Brian](https://wordpress.org/support/users/brianmiyaji/)
 * (@brianmiyaji)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/update-results-using-api/#post-14199009)
 * [@alvarocece](https://wordpress.org/support/users/alvarocece/) We’ve just released
   SportsPress version 2.7.8 which addresses the event results update issue via 
   REST API. I’m also working on documentation with step-by-step instructions on
   using the API for POST and PATCH requests. Will post a link here when that’s 
   ready 🙂
 * In the meantime, please update to SportsPress 2.7.8 for the latest version which
   fixes an API issue that was preventing event results from saving: [https://wordpress.org/plugins/sportspress/#developers](https://wordpress.org/plugins/sportspress/#developers)
 * Thanks!
    Brian
 *  Thread Starter [alvarocece](https://wordpress.org/support/users/alvarocece/)
 * (@alvarocece)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/update-results-using-api/#post-14205621)
 * [@brianmiyaji](https://wordpress.org/support/users/brianmiyaji/)
    Thank you so
   much for letting me know about this update! I will try it and check if everything’s
   working properly for me.
 * Regards!
 *  [Roch](https://wordpress.org/support/users/rochesterj/)
 * (@rochesterj)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/update-results-using-api/#post-14208086)
 * Awesome! Let us know how it works for you.
 * Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Update results using API’ is closed to new replies.

 * ![](https://ps.w.org/sportspress/assets/icon-256x256.png?rev=1252005)
 * [SportsPress - Sports Club & League Manager](https://wordpress.org/plugins/sportspress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/sportspress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/sportspress/)
 * [Active Topics](https://wordpress.org/support/plugin/sportspress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sportspress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sportspress/reviews/)

## Tags

 * [api](https://wordpress.org/support/topic-tag/api/)
 * [post](https://wordpress.org/support/topic-tag/post/)
 * [update](https://wordpress.org/support/topic-tag/update/)

 * 5 replies
 * 3 participants
 * Last reply from: [Roch](https://wordpress.org/support/users/rochesterj/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/update-results-using-api/#post-14208086)
 * Status: resolved