删除

Description 描述

object screen.delete(array **screenIds**)

This method allows to delete screens. 此方法允许删除聚合图形

Parameters 参数

(array) IDs of the screens to delete. (array)删除聚合图形的IDs

Return values 返回值

(object) Returns an object containing the IDs of the deleted screens under the screenids property. (object) 返回包含screenids属性下的已删除屏幕的id的对象。

Examples 示例如下

Deleting multiple screens 删除多个聚合图形

Delete two screens. 删除两个聚合图形

Request:

  1. {
  2. "jsonrpc": "2.0",
  3. "method": "screen.delete",
  4. "params": [
  5. "25",
  6. "26"
  7. ],
  8. "auth": "3a57200802b24cda67c4e4010b50c065",
  9. "id": 1
  10. }

Response:

  1. {
  2. "jsonrpc": "2.0",
  3. "result": {
  4. "screenids": [
  5. "25",
  6. "26"
  7. ]
  8. },
  9. "id": 1
  10. }

Source

CScreen::delete() in frontends/php/include/classes/api/services/CScreen.php.