Title: POST through API
Last modified: February 8, 2021

---

# POST through API

 *  Resolved [alvarocece](https://wordpress.org/support/users/alvarocece/)
 * (@alvarocece)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/post-through-api/)
 * Greetings,
 * I’m trying to use your API REST in my website to add/edit some teams, players
   and events. I’ve found the API documentation rather lacking in useful information
   regarding POST operations.
 * Im calling the following API call: _/wp-json/sportspress/v2/teams_ using Postman,
   with POST selected and the following body:
 *     ```
       {
           "title": {
               "rendered": "Equipo Test"
           },
           "content": {
               "rendered": "Equipo Test",
               "protected": false
           },
           "excerpt": {
               "rendered": "Equipo Test",
               "protected": false
           },
           "abbreviation": "ET"
       }
       ```
   
 * However, I’m getting this error:
 *     ```
       {
           "code": "empty_content",
           "message": "El contenido, el título y el extracto están vacíos.",
           "data": {
               "status": 400
           }
       }
       ```
   
 * I would like to know how my body should be formed or even if it’s possible to
   create new teams/events though your API.
 * Thanks.

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

 *  [Roch](https://wordpress.org/support/users/rochesterj/)
 * (@rochesterj)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/post-through-api/#post-14027177)
 * Hi there!
 * Thanks for reaching out.
 * This doesn’t look like a SportsPress issue per se. Check out this link:
    [https://stackoverflow.com/questions/46021570/wordpress-rest-api-acting-like-no-data-is-sent](https://stackoverflow.com/questions/46021570/wordpress-rest-api-acting-like-no-data-is-sent)
 * You can certainly use the API for post actions. But unfortunately, we can’t help
   you with custom coding via support, this includes the REST API (as it depends
   on the code you create to interact with it).
 * Either way, our devs, and others are free to chime in, but I’m setting this one
   as resolved as this isn’t a support issue.
 * Thanks!
 *  Thread Starter [alvarocece](https://wordpress.org/support/users/alvarocece/)
 * (@alvarocece)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/post-through-api/#post-14062516)
 * Greetings,
 * After checking a few things in that link and other things (like how I was creating
   my header) I managed to create new players via API.
 * Thank you so much.
 *  Plugin Contributor [Savvas](https://wordpress.org/support/users/savvasha/)
 * (@savvasha)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/post-through-api/#post-14064106)
 * Hi [@alvarocece](https://wordpress.org/support/users/alvarocece/) ,
 * I am glad you were able to solve it. Can you please share some steps of your 
   solution for other users with similar issues?
 * Thanks in advance,
    Savvas
 *  [Roch](https://wordpress.org/support/users/rochesterj/)
 * (@rochesterj)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/post-through-api/#post-14064280)
 * That’s awesome! I’m glad it’s resolved!
 * Let us know if you need anything else.
 * Kind Regards,
    -Roch

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

The topic ‘POST through 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/)

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