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

API map.create can attach elements only for first map in request.

    XMLWordPrintable

    Details

    • Team:
      Team D
    • Sprint:
      Sprint 50 (Mar 2019), Sprint 51 (Apr 2019)
    • Story Points:
      1

      Description

      Steps to reproduce:
      Use API request to create more two maps with elements.

      [
          {
              "name": "map-2",
              "width": "400",
              "height": "200",
              "selements": [
                  {
                      "elementtype": 0,
                      "areatype": 1,
                      "elements": [
                          {
                              "hostid": "106058"
                          }
                      ],
                      "iconid_off": "4",
                      "x": 0,
                      "y": 0,
                      "width": 64,
                      "height": 64
                  }
              ]
          },
          {
              "name": "map-1",
              "width": "400",
              "height": "200",
              "selements": [
                  {
                      "elementtype": 0,
                      "areatype": 1,
                      "elements": [
                          {
                              "hostid": "106057"
                          }
                      ],
                      "iconid_off": "4",
                      "x": 0,
                      "y": 0,
                      "width": 64,
                      "height": 64
                  }
              ]
          }
      ]
      

      Result:
      Maps created. Map with name "map-1" is empty, does not have element.
      Expected:
      Maps created with elements according API request.

        Attachments

          Activity

            People

            Assignee:
            gcalenko Gregory Chalenko
            Reporter:
            gcalenko Gregory Chalenko
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: