删除

Description 描述

object screenitem.delete(array screenItemIds)

This method allows to delete screen items. 此方法允许删除一个聚合图形项

Parameters 参数

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

Return values 返回值

(object) Returns an object containing the IDs of the deleted screen items under the screenitemids property. (object) 返回在screenitemids属性下包含已删除聚合图形项的id的对象。

Examples 示例如下

Deleting multiple screen items 删除多个聚合图像项

Delete two screen items. 删除两个聚合图形项

Request:

{
           "jsonrpc": "2.0",
           "method": "screenitem.delete",
           "params": [
               "65",
               "63"
           ],
           "auth": "3a57200802b24cda67c4e4010b50c065",
           "id": 1
       }

Response:

{
           "jsonrpc": "2.0",
           "result": {
               "screenitemids": [
                   "65",
                   "63"
               ]
           },
           "id": 1
       }

See also

Source

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