by Carol Griffiths.
I'm trying to make a call to the rest webservice.
The token is assigned to my user.
with post data:
{
"forumid":2438
}
Headers:
Accept: application/json
Content-Type: application/json
But I get the error:
<?xml version="1.0" encoding="UTF-8" ?>
<EXCEPTION class="invalid_parameter_exception">
<ERRORCODE>invalidparameter</ERRORCODE>
<MESSAGE>Invalid parameter value detected</MESSAGE>
</EXCEPTION>
I have my moodle session as a cookie. What am I doing wrong here?