POST request to add new post, returns GET (existing posts)
-
Hi,
I am sending a POST request to this URL:
https://www.website.com/wp-json/wp/v2/mentor
Where mentor is a custom post type (e.g. pod) I created.
I want to create a new post for “mentor”.
When I send the “title” and “slug” in the body with the right header auth, it returns back only “10” items of the existing posts under “mentor” and does not create a new post as expected.
I have create a normal wordpress post using the rest API. But this doesn’t work.
Why?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘POST request to add new post, returns GET (existing posts)’ is closed to new replies.