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

API documentation for host.update has incorrect example response hostid

XMLWordPrintable

    • Icon: Documentation task Documentation task
    • Resolution: Fixed
    • Icon: Trivial Trivial
    • 4.0 (plan)
    • None
    • Documentation (D)
    • None
    • Sprint 17
    • 0.1

      The following is from the documentation. The response host id should be 10092 and not 10126. This is trivial but is for consistency and to avoid any one being confused.

      Request :

      {
          "jsonrpc": "2.0",
          "method": "host.update",
          "params": {
              "hostid": "10092",
              "status": 0
          },
          "auth": "038e1d7b1735c6a5436ee9eae095879e",
          "id": 1
      }
      

      Resonse:

      {
          "jsonrpc": "2.0",
          "result": {
              "hostids": [
                  "10126"
              ]
          },
          "id": 1
      }
      

            martins-v Martins Valkovskis
            james.cook000@gmail.com James Cook
            Team C
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: