This happens also with other methods but this example will be about host.create.
Trying to create a host with host interface identified by IP. Still I am forced to set an empty DNS value: "dns":"" and if I don't I get obscure error message: Incorrect arguments passed to function.
The fact that a user sends JSON and gets error message about incorrect function usage is really annoying and the error message is not helpful at all.
Steps to reproduce:
Send JSON to create a host without specifying empty "dns" param:
Check the error in returned JSON:
Error message telling the real problem is missing param: "dns".
It would be great also not to force user to set empty parameters.