Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-6141

Documentation of API method configuration.import is wrong.

XMLWordPrintable

      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.

            martins-v Martins Valkovskis
            mdobrinin Mikhail Dobrinin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: