Zabbix Documentation 1.8

3.04.04.4 (current)| In development:5.0 (devel)| Unsupported:1.82.02.22.43.23.44.2Guidelines

User Tools

Site Tools


Sidebar

api:application:massadd

Table of Contents

massAdd()

Available since version: 1.8

Parameters

Multidimensional array with Item applications data

ParameterTypeOptionalDescriptionDetails
applicationsarray Item application to update.
itemsarray Yes Item objects that should be added to item applications.

Returns

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

Example

Add two items with ID “100100000010092”, “100100000010086” to two applications with ID “100100000000042”, “100100000000013”

{
"jsonrpc":"2.0",
"method":"application.massAdd",
"params":{ 
	"applications": [
	  {"applicationid": "100100000000042"},
	  {"applicationid": "100100000000013"}
	],
	"items": [ 
		{"itemid": "100100000010092"},
		{"itemid": "100100000010086"}
	]
},
"auth":"f223adf833b2bf2ff38574a67bba6372",
"id":2
}
Item applications updated successfully:

{
"jsonrpc":"2.0",
"result":{
	"applicationids":["100100000000042","100100000000013"]
},
"id":2
}