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

action.delete

説明

object action.delete(array actionIds)

このメソッドは、アクションを削除することができます。

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

パラメータ

(array) IDs of the actions to delete.

戻り値

(object)actionids プロパティの下にある、削除されたアクションの ID を含むオブジェクトを返します。

複数のアクションを削除する

2つのアクションを削除します。

Request:

{
           "jsonrpc": "2.0",
           "method": "action.delete",
           "params": [
               "17",
               "18"
           ],
           "auth": "3a57200802b24cda67c4e4010b50c065",
           "id": 1
       }

Response:

{
           "jsonrpc": "2.0",
           "result": {
               "actionids": [
                   "17",
                   "18"
               ]
           },
           "id": 1
       }

ソース

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