You are sending input parameters s JSON. Moodle web services do not support that. You should send parameters as classic POST or GET params.
Web services
Trying to make first REST call - getting invalid_parameter_exception
Keskustelu on lukittu, joten et voi enää vastata siihen.