API endpoints return 401 error
-
Some of the endpoints return 401 error. But the rest of them are working well (posts, comments, etc.)
I’m using a username and password of an admin.
- curl –user “usenamer:password” https://”url”/wp-json/wp/v2/plugins {“code”:”rest_cannot_view_plugins”,”message”:”Sorry, you are not allowed to manage plugins for this site.”,”data”:{“status”:401}}
- curl –user “usenamer:password” https://”url”/wp-json/wp/v2/settings {“code”:”rest_forbidden”,”message”:”Sorry, you are not allowed to do that.”,”data”:{“status”:401}}
- curl –user “usenamer:password” https://”url”/wp-json/wp/v2/themes {“code”:”rest_cannot_view_themes”,”message”:”Sorry, you are not allowed to view themes.”,”data”:{“status”:401}}
The page I need help with: [log in to see the link]
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘API endpoints return 401 error’ is closed to new replies.