Hi, I am very new to Moodle, trying to use the rest API with postman. I have:
Enable web services in Site administration > Advanced features
Enabled Rest in Site administration > Server > Web services > Manage protocols
Created new service in Site administration > Server > Web services > External Services
Added function to service - core_course_get_courses_by_field
Users -> All Users (just to get it working, will be a username "web-api")
Created a token for username "web-api"
Send PostMan request:
But am receiving:
{
"exception": "webservice_access_exception",
"errorcode": "accessexception",
"message": "Access control exception"
}
I have also tried enrolling that user in the course, but nadda.
Any idea what I'm missing?
Cheers!