This method allows to update existing host macros.

    This method is only available to Admin and Super admin user types. Permissions to call the method can be revoked in user role settings. See for more information.

    The hostmacroid property must be defined for each host macro, all other properties are optional. Only the passed properties will be updated, all others will remain unchanged.

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

    Changing the value of a host macro

    Request:

    Response:

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