This is a translation of the original English documentation page. Help us make it better.

graphprototype.delete

説明

object graphprototype.delete(array graphPrototypeIds)

graph prototypes を削除することができるメソッドです。

このメソッドは、Admin および Super admin ユーザータイプにのみ使用できます。このメソッドを呼び出す許可は、ユーザーロール設定で
取り消すことができます。詳細については、User rolesを参照してください。

パラメータ

(array) 削除する graph prototypes のID

戻り値

(object) graphids プロパティの下で削除された graph prototypes のIDを含むオブジェクトを返します。

#### 複数の graph prototype を削除する

2つの graph prototype を削除します。

Request:

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

Response:

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

ソース

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