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)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘POST through API’ is closed to new replies.