Quantcast
Channel: Web services
Viewing all articles
Browse latest Browse all 2363

Webservice POST error: Invalid token - token not found

$
0
0
by Karishma Tiwari.  

I have enabled the web services, added the service, and added authorised users. With the token, I have the below URL, which I used in Postman to send some create course parameters.


http://xxx/webservice/rest/server.php?wstoken=xxx&moodlewsrestformat=json&wsfunction=core_course_create_courses

However I am getting below error:

{

    "exception": "moodle_exception",

    "errorcode": "invalidtoken",

    "message": "Invalid token - token not found"

}


The token is from the right user (admin), and previously the same test was successful. 

What am i missing here?

Do i need to have a Restful plugin too?


Viewing all articles
Browse latest Browse all 2363

Trending Articles