Zabbix Documentation 1.8

3.04.04.45.0 (current)| In development:5.2 (devel)| Unsupported:1.82.02.22.43.23.44.2Guidelines

User Tools

Site Tools


Sidebar

api:map:update

Table of Contents

update()

Available since version: 1.8
The method is used to control all map attributes.

Parameters

ParameterTypeOptionalDescriptionDetails
sysmapidstring Map ID.
map attributeany Yes New value for a map attribute.

Returns

ParameterDescription
resultOperation successful. Result will contain array of updated Map IDs.
errorIn case of any errors

Example

Set map name to “New Name”:

  {
   "jsonrpc":"2.0",
   "method":"map.update",
   "params":{
      "sysmapid": "100100000010092",
      "name": "New Name"
   },
   "auth":"700ca65537074ec963db7efabda78259",
   "id":2
  }

Retrieved updated map IDs:

  {
   "jsonrpc":"2.0",
   "result": {
       "sysmapids":["100100000010092"]
   },
   "id":2
  }