Problem Description
I want to create an API request in Postman that creates a category in Moodle.
The following are the steps which I did in Moodle :
1. Enabled Web service
2. Created an External service and added core_course_create_categories function.
3. Enabled REST protocol
4. Created Token.
This is my POST URL:
http://localhost/test/moodle/webservice/rest/server.php?username=admin&password=Password@1&service=mycustomservice&name=CustomCategory&parent=1&idnumber=CSTM1&description=Desc
Under Authorization tab, I have selected **Bearer Token** and added the Token from Moodle web service.
When I send the request, I am getting **invalidtoken Invalid token - token not found** error.
Can anyone please suggest a solution for this
Moodle version: 3.4.8 and Postman version 7.6.0
Thanks in advance.
AI-Generated Solution
Powered by LMSouq AI · GPT-4.1-mini
Analyzing problem and generating solution…
Was this solution helpful?