Hi,
I am trying to post a new user through POSTMAN using /wp-json/wplms/v1/user/register
But I always get:
{"code":"rest_forbidden","message":"Sorry, you are not allowed to do that.","data":{"status":401}}
I am running WPLMS 4.061.
I have created an app under WPLMS API Settings keys/app.
Do you have any other thoughts on what might be wrong.
Thanks
You need to pass the state in this post params .please refer :
https://documenter.getpostman.com/view/3430105/S1TYTvP9?version=latest
State param can be found in your wp-admin -> lms -> settings -> api -> general.
Hi, I have included state but I still get the same error message returned
please check :
1 . if you have enabled api and oauth server and registrations from wp-admin -> lms -> settings -> api.
2 . second thing that this data has to posted in raw format as json data in body.
Hi, thanks for your help. The issue was because postman was not posting in a raw format of JSON. It is now working
good to know
thanks for sharing this here
topic closed