LMSouq
moodle-core Open

Create Category using moodle api call from postman error

BH
Bhumi Shah
1 month ago
3 views
Problem Description
I am trying to create a category in moodle making api call from postman API Endpoint: http://localhost/MyMoodle/webservice/rest/server.php Method: POST ```` Payload: Selected x-www-form-urlencoded wstoken:<token> wsfunction:core_course_create_categories moodlewsrestfomat:json categories[0][name]:Custom Cat 1 categories[0][parent]:0 categories[0][idnumber]:1 categories[0][description]:CustomCatdescription ```` getting below error ```` <?xml version="1.0" encoding="UTF-8" ?> <EXCEPTION class="invalid_parameter_exception"> <ERRORCODE>invalidparameter</ERRORCODE> <MESSAGE>Invalid parameter value detected</MESSAGE> </EXCEPTION> ````

AI-Generated Solution

Powered by LMSouq AI · GPT-4.1-mini

✓ Solution Ready
Analyzing problem and generating solution…
Was this solution helpful?
Back to Knowledge Base