housekeeping.update

描述

object housekeeping.update(object housekeeping)

此方法用于 update 现有的清理设置。

此方法仅适用于 超级管理员(Super admin) 用户类型。 调用该方法的权限可以在用户角色设置中撤销。更多信息请参阅 User roles

参数

(object) housekeeping 需要更新。

返回值

(array) 返回一个 array,其中包含已更新参数的名称。

示例

执行请求:

{  "jsonrpc": "2.0",  "method": "housekeeping.update",  "params": {  "hk_events_mode": "1",  "hk_events_trigger": "200d",  "hk_events_internal": "2d",  "hk_events_discovery": "2d"  },  "id": 1 }

响应:

{  "jsonrpc": "2.0",  "result": [  "hk_events_mode",  "hk_events_trigger",  "hk_events_internal",  "hk_events_discovery"  ],  "id": 1 }

来源

CHousekeeping::update() 方法位于 ui/include/classes/api/services/CHousekeeping.php 文件中。