• Resolved usamanasirqb

    (@usamanasirqb)


    Hi, I am currently initiating development for my website in which I want users to be automatically sign up on LMS Lifter too as students after they sign up on my site. According to

    API documentations

    , the URL given on which I will be requesting to create user is

    POST https://developer.lifterlms.com/wp-json/llms/v1/students
    But it is giving me error of

    {"code"=>"rest_no_route", "message"=>"No route was found matching the URL and request method", "data"=>{"status"=>404}}

    Any help in this would be highly appreciated

Viewing 4 replies - 1 through 4 (of 4 total)
  • @usamanasirqb

    All API requests should be made to YOUR website, not to our website where the documentation lives.

    The URLs displayed there are supposed to be examples that you can replace with your website’s URL.

    Up until sometime recently the url was https://example.tld but that changed. I’m not sure when — something must have changed in the library we use to build our docs and I didn’t notice it during our last deployment. I’ll get that fixed to avoid further confusion in the future.

    Since I haven’t heard back from you in a week I’m going to mark this thread as resolved. Don’t worry, if you have more questions or still need help just hit reply and let me know!

    Have a great day!

    Thread Starter usamanasirqb

    (@usamanasirqb)

    @jnr4u2 I need the request URL to which I will be sending my parameters, I am not sure if I have to put my website’s URL in the request. https://example.tld does not work at all, any help in the case would be highly appreciated.

    @usamanasirqb

    Have a look at our updated documentation around the “Base URL”: https://developer.lifterlms.com/rest-api/#section/Base-URL

    In short: https://example.tld is an example top level domain. It *will never work* because this is a fake URL used to build documentation examples, not an actual real live working URL that’s intended to be used.

    The REST API is distributed with the plugin and therefore accessible on your site.

    You’ll need to use your website’s URL.

    Hope that helps,

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Error on Requesting API for creating Students’ is closed to new replies.