graph.delete

Description描述

object graph.delete(array graphIds)

This method allows to delete graphs. 此方法允许删除图形。

Parameters参数

(array) IDs of the graphs to delete. (数组) 需要被删除的图形的ID。

Return values返回值

(object) Returns an object containing the IDs of the deleted graphs under the graphids property. (对象) 返回一个对象,含有被删除的图像的graphids参数的ID。

Examples示例

Deleting multiple graphs删除多个图形

Delete two graphs.删除两个图形

Request请求:

{
           "jsonrpc": "2.0",
           "method": "graph.delete",
           "params": [
               "652",
               "653"
           ],
           "auth": "3a57200802b24cda67c4e4010b50c065",
           "id": 1
       }

Response响应:

{
           "jsonrpc": "2.0",
           "result": {
               "graphids": [
                   "652",
                   "653"
               ]
           },
           "id": 1
       }

Source来源

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