- API explanation: please add better explanation for API, as sometimes it's not easy to guess what should be in parameters.
- API response warnings: If request is correct, but, for example, parameter "proxy_hostid" is outside of parameters array, API will just omit it without notifying user that parameter is omitted. For example, in this JSON parameter "proxy_hostid" will be omitted without any warnings:
{
"jsonrpc":"2.0",
"method":"host.create",
"params":{
"host":"Some-host-name",
"interfaces":[
{
"type":1,
"main":1,
"useip":1,
"ip":"127.0.0.1",
"dns":"",
"port":"10050"
}
],
"groups":[
{
"groupid":"17"
}
],
"templates":[
{
"templateid":"10586"
}
],
"macros":[
{
"macro":"{$REAL_DOMAIN_NAME}",
"value":"example.com"
}
]
},
"proxy_hostid":"10583",
"auth":"some-auth-string",
"id":1
}