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?