-
Incident report
-
Resolution: Fixed
-
Minor
-
None
-
2.0.2
https://www.zabbix.com/documentation/2.0/manual/appendix/api/configuration/import
The example JSON string on the page does not include standard fields like authentication key, id, and data like every other method has. When attempting to use the method as-is the server responds with the following message:
[{"jsonrpc":"2.0","error":{"code":-32600,"message":"Invalid Request.","data":"Expecting JSON-rpc version 2.0, \"x\" is given."},"id":"x"},{"jsonrpc":"2.0","error":{"code":-32600,"message":"Invalid Request.","data":"JSON-rpc version is not specified."},"i d":null},{"jsonrpc":"2.0","error":{"code":-32600,"message":"Invalid Request.","data":"Expecting JSON-rpc version 2.0, \"<\" is given."},"id":"<"}]
Also not that I am receiving square brackets ( '[' and ']' ) around the response so it isnt able to be parsed as a JSONObect.