This method allows to update existing host macros.

    (object/array) to be updated.

    (object) Returns an object containing the IDs of the updated host macros under the property.

    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. },

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