sla.delete

Описание

object sla.delete(массив slaids)

Этот метод позволяет удалять записи SLA.

Этот метод доступен только пользователям с типом доступа Администратор и Супер-администратор. Разрешения на вызов метода можно отозвать в настройках ролей пользователя. Дополнительную информацию см. в разделе Роли пользователей.

Parameters

(array) IDs of the SLAs to delete.

Return values

(object) Returns an object containing the IDs of the deleted SLAs under the slaids property.

Примеры

Deleting multiple SLAs

Delete two SLA entries.

Request:

{
           "jsonrpc": "2.0",
           "method": "sla.delete",
           "params": [
               "4",
               "5"
           ],
           "auth": "3a57200802b24cda67c4e4010b50c065",
           "id": 1
       }
Copy
✔ Copied

Response:

{
           "jsonrpc": "2.0",
           "result": {
               "slaids": [
                   "4",
                   "5"
               ]
           },
           "id": 1
       }
Copy
✔ Copied

Источник

CSla::delete() в ui/include/classes/api/services/CSla.php.

To toggle search highlight, press Ctrl+Alt+H
Have an improvement suggestion for this page? Select the text that could be improved and press Ctrl+Enter to send it to the editors.