<br>CURL Options: Array
(
[19913] => 1
[13] => 30
[78] => 5
[81] =>
[64] =>
[52] => 1
[74] => 1
[10023] => Array
(
[0] => Content-Type: application/json-rpc
[1] => User-Agent: ZabbixAPI v1.0 - http://andrewfarley.com/zabbix_php_api
)
[10036] => POST
[10015] => {"auth":"efddd9d706bac5365d7e91663a579371","method":"host.massUpdate","id":1,"params":{"hosts":[
],"templates":[
{"templateid":"100100000010052"},
{"templateid":"100100000010064"},
{"templateid":"100100000010061"},
{"templateid":"100100000012115"},
{"templateid":"100100000010049"},
{"templateid":"100100000010937"},
{"templateid":"100100000011968"},
{"templateid":"100100000010049"}]},"jsonrpc":"2.0"}
[10102] => gzip
)
Got response from API: ({"jsonrpc":"2.0","error":
,"id":1})
Response decoded: (Array
(
[jsonrpc] => 2.0
[error] => Array
(
[code] => -32602
[message] => Invalid params.
[data] => [ CTemplate::massAdd ] DBError
)
[id] => 1
)
The API docs have no mention of templates anymore for host.massUpdate() ..