此方法允许更新现有的主机宏。

    要更新的。

    返回包含“hostMacroids”属性下更新的主机宏的ID的对象。

    Changing the value of a host macro

    Change the value of a host macro to “public”.

    Response:

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

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