Steps to reproduce:
1) execute a host.create API call specifying any hostgroup to which the logged in user has permissions, but has a groupid > 9.
Result:
code message data
---- ------- ----
-32500 Application error. No permissions to referred object or it does not exist!
Expected:
hostids
-------