Rest cannot create error
-
Hello
I am using wordpress’ default wp rest api feature and WP OAuth Server plugin. I am getting access token when i tried to call endpoint to create post with POST request but still i am getting this response{ "code": "rest_cannot_create", "message": "Sorry, you are not allowed to create posts as this user.", "data": { "status": 401 } }
Access token is valid though i am not able to create post with json endpoint. I don’t know what is the issue. I have checked database,too and found that the access token is valid for the user who is administrator of site.
That means plugin doesn’t make user logged in because to create post user must be logged in and user should have capabilities for that.
Please help me out for this problem as soon as possible.
Thanks in advance.
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘Rest cannot create error’ is closed to new replies.