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

API: Is impossible to create a dashboard if one of the several widgets does not have a field name

XMLWordPrintable

    • Sprint 15
    • 0.25

      Is impossible to create a dashboard if one of the several widgets does not have a field name, and for rest has been given. Example:

      "method": "dashboard.create",
          "params": {
              "name": "Widgets - ctreate dashboard with widgets",
              "widgets": [
                  {
                      "type": "problems",
                      "name": "widget Problems",
                      "x": 0,
                      "y": 0,
                      "width": 6,
                      "height": 5,
                      "fields": []
                  },
                  {
                      "type": "url",                    
                      "x": "6",
                      "y": "0",
                      "width": "6",
                      "height": "5",
                      "fields": []
                  }
              ]        
          },

      I get error:

      "error": {
              "code": -32500,
              "message": "Application error.",
              "data": "SQL statement execution has failed \"INSERT INTO widget (dashboardid,type,name,x,y,width,height,widgetid) VALUES ('57','problems','widget Problems','0','0','6','5','432'),('57','url','6','0','6','5','','433')\"."
          },

            sasha Alexander Vladishev
            Tatsiana Malykh Tatsiana Malykh (Inactive)
            Team B
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: