Unable to add just one link using map.update

XMLWordPrintable

    • Type: Change Request
    • Resolution: Unresolved
    • Priority: High
    • None
    • Affects Version/s: None
    • Component/s: API (A)
    • None

      I am using Zabbix API and method map.update to add a link between 2 elements, its resetting / removing the other, already existing links between other elements is same map.

      Sharing a sample payload is like. I am using python's requests module.

      payload = {
       "jsonrpc": "2.0",
       "method": "map.update",
       "auth": token,
       "id": 1,
       "params": {
       "sysmapid": "46",
       "links": [{
       "selementid1": "122",
       "selementid2": "119",
       "color": "ffff00",
       "label": "port:2049",
       "permission": 2
       }, {
       "selementid1": "118",
       "selementid2": "121",
       "color": "ffff00",
       "label": "port:9092",
       "permission": 2
       }],
       },
      }

            Assignee:
            Zabbix Support Team
            Reporter:
            Dhiman Das
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated: