report.update
Описание
object report.update(объект/массив reports)
Этот метод позволяет обновлять существующие запланированные отчеты.
Этот метод доступен только пользователям с типом доступа Администратор и Супер-администратор. Разрешения на вызов метода можно отозвать в настройках ролей пользователя. Дополнительную информацию см. в разделе Роли пользователей.
Parameters
(object/array) Scheduled report properties to be updated.
The reportid property must be defined for each scheduled report, all
other properties are optional. Only the passed properties will be
updated, all others will remain unchanged.
Additionally to the standard scheduled report properties the method accepts the following parameters.
| Parameter | Type | Description |
|---|---|---|
| users | object/array of objects | Users to replace the current users assigned to the scheduled report. |
| user_groups | object/array of objects | User groups to replace the current user groups assigned to the scheduled report. |
Return values
(object) Returns an object containing the IDs of the updated scheduled
reports under the reportids property.
Примеры
Disabling scheduled report
Request:
{
"jsonrpc": "2.0",
"method": "report.update",
"params": {
"reportid": "1",
"status": "0"
},
"auth": "038e1d7b1735c6a5436ee9eae095879e",
"id": 1
}
Response:
{
"jsonrpc": "2.0",
"result": {
"reportids": [
"1"
]
},
"id": 1
}
Смотрите также
Источник
CReport::update() в ui/include/classes/api/services/CReport.php.