object item.update(object/array items)
This method allows to update existing items.
Web items cannot be updated via the Zabbix API.
(object/array) Item properties to be updated.
itemid property must be defined for each item, all other properties are optional. Only the passed properties will be updated, all others will remain unchanged.
Additionally to the standard item properties, the method accepts the following parameters.
|applications||array||IDs of the applications to replace the current applications.|
|preprocessing||array||Item preprocessing options to replace the current preprocessing options.|
(object) Returns an object containing the IDs of the updated items under the
Enable an item, that is, set its status to "0".
Update Dependent item name and Master item ID. Only dependencies on same host are allowed, therefore Master and Dependent item should have same hostid.
Enable item value trapping.
CItem::update() in frontends/php/include/classes/api/services/CItem.php.
Update a script item with a different script and remove unnecessary parameters that were used by previous script.
CItem::update() in ui/include/classes/api/services/CItem.php.