Viewing 4 replies - 1 through 4 (of 4 total)
  • Which authentication method are you using? Are you just trying to get the posts or creating a new one?

    Thread Starter parbuck

    (@parbuck)

    Hi I am using basic authentication and trying to create a new post. I can get the post ok. This is the response I get. I have the user/password in the header in postman. The user is admin and has administrator right from the dashboard.
    Thanks for your help

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

    Follow this blog https://indexforwp.com/using-postman-with-the-wordpress-rest-api/

    and try the application password as well.

    Thread Starter parbuck

    (@parbuck)

    thanks. I tried with the application password and still get 401

    {
        "code": "rest_cannot_edit",
        "message": "Sorry, you are not allowed to edit this post.",
        "data": {
            "status": 401
        }
    }
Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Postman POST returns 404 for admin user’ is closed to new replies.