-
Change Request
-
Resolution: Unresolved
-
High
-
None
-
None
-
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
}],
},
}