I want to create and update a wordpress post from one site which would automatically post to another wordpress site. I’ve tried playing around with the REST API in wordpres 4.7+ but I keep getting the following message

{"code":"rest_cannot_create","message":"Sorry, you are not allowed to create posts as this user.","data":{"status":401}}

Any thoughts on how I can tackle this?

Thanks

Read more here: How can I create a wordpress post in another wordpress site using their REST API?


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: