API Integration Register User Error

Home Forums Legacy Support 4.0 Bugs & Issues API Integration Register User Error

Tagged: , ,

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #301486
    rchristie
    Participant
    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
    #301773
    Anshuman Sahu
    Keymaster
    You need to pass the state in this post params .please refer : https://documenter.getpostman.com/view/3430105/S1TYTvP9?version=latest
    #301774
    Anshuman Sahu
    Keymaster
    State param can be found in your wp-admin -> lms -> settings -> api -> general.
    #301780
    rchristie
    Participant
    Hi, I have included state but I still get the same error message returned
    #302078
    Anshuman Sahu
    Keymaster
    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.
    #302098
    rchristie
    Participant
    Hi, thanks for your help. The issue was because postman was not posting in a raw format of JSON. It is now working
    #302201
    Veronica
    Moderator
    good to know thanks for sharing this here topic closed
Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘API Integration Register User Error’ is closed to new replies.