Can’t DELETE or CREATE a new post with WP API

Question

I am trying to delete a post on a wordpress website using Authorization username and pass word, but I get this response from the server

"code": "rest_cannot_delete",
"message": "Sorry, you are not allowed to delete this post.",
"data": {
"status": 401
}

Does anyone had this issue?

I am using the WP-API DELETE REST .

Thank you in advance

0
Ioannis Ypatidis 2 years 2020-12-30T04:10:31-05:00 0 Answers 2 views 0

Leave an answer

Browse
Browse