graphprototype.delete

Description描述

object graphprototype.delete(array graphPrototypeIds)

This method allows to delete graph prototypes.此方法允许删除图形原型。

Parameters参数

(array) IDs of the graph prototypes to delete.(array) 需要删除的图形原型的ID。

Return values返回值

(object) Returns an object containing the IDs of the deleted graph prototypes under the graphids property.

(object) 返回一个包含被删除的图形原型的ID的关联数组在graphids参数下。

Examples示例

Deleting multiple graph prototypes删除多个图形原型

Delete two graph prototypes.删除连个图形原型。

Request请求:

  1. {
  2. "jsonrpc": "2.0",
  3. "method": "graphprototype.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参见

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