This method allows to update existing items.此方法允许更新现有项

    Web items cannot be updated via the Zabbix API.Web项无法通过Zabbix API进行更新。

    The property must be defined for each item, all other properties are optional. Only the passed properties will be updated, all others will remain unchanged.必须为每个项定义“itemid”属性,所有其他属性都是可选的。 只有通过的属性将被更新,所有其他属性将保持不变。

    Additionally to the , the method accepts the following parameters.除了标准项属性之外,该方法接受以下参数。

    Enabling an item 启用项

    Enable an item, that is, set its status to “0”.启用项,即将其状态设置为“0”。

    Request:

    1. {
    2. "jsonrpc": "2.0",
    3. "result": {
    4. "10092"
    5. ]
    6. },
    7. "id": 1

    CItem::update() in frontends/php/include/classes/api/services/CItem.php.