2

We have tried to create a post in WordPress using postman, can't able to create one since we have received an error as you are not allowed to do this action

Even though I entered the admin login, it gives the same error !!!!

This is the exact error message,

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

I have tried using this URL in the postman (post) method http://localhost/wordpress/wp-json/wp/v2/posts

And in the authorization entered the admin credentials of my application.

Any alternative solutions are also appreciable .....Thank You!!!

1
  • Any luck with this?
    – aareeph
    Jul 14, 2023 at 8:06

1 Answer 1

1

Thank you for your questions.

Did you check: https://make.wordpress.org/core/2020/11/05/application-passwords-integration-guide/ ?

From WordPress 5.6 you can set application password in your WordPress profile.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.