graph.delete

Description

描述

object graph.delete(array graphIds) 对象 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 属性下,返回一个包含已删除图表的对象.

Examples

例子

Deleting multiple graphs

删除多个图表

Delete two graphs. 删除两个图表

Request: 请求:

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

Response: 响应:

  1. {
  2. "jsonrpc": "2.0",
  3. "result": {
  4. "graphids": [
  5. "652",
  6. "653"
  7. ]
  8. },
  9. "id": 1
  10. }

Source

来源

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