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

templategroup.massremove

説明

object templategroup.massremove(object parameters)

このメソッドは、関連するオブジェクトを複数のテンプレートグループから削除することができます。

このメソッドは、AdminおよびSuper adminタイプのユーザーのみ利用可能です。メソッドを呼び出す権限は、ユーザーの役割の設定で取り消すことができます。詳細はユーザーの役割を参照してください。

Parameters

(object) Parameters containing the IDs of the template groups to update and the objects that should be removed.

Parameter Type Description
groupids ID/array IDs of the template groups to be updated.

Parameter behavior:
- required
templateids ID/array IDs of the templates to remove from all template groups.

Parameter behavior:
- required

戻り値

(object) groupidsプロパティの下に更新されたテンプレートグループのIDを含むオブジェクトを返します。

テンプレートグループからテンプレートの削除

指定されたテンプレートグループから2つのテンプレートを削除します。

リクエスト :

{
           "jsonrpc": "2.0",
           "method": "templategroup.massremove",
           "params": {
               "groupids": [
                   "5",
                   "6"
               ],
               "templateids": [
                   "30050",
                   "30001"
               ]
           },
           "id": 1
       }
Copy
✔ Copied

レスポンス:

{
           "jsonrpc": "2.0",
           "result": {
               "groupids": [
                   "5",
                   "6"
               ]
           },
           "id": 1
       }
Copy
✔ Copied

ソース

CTemplateGroup::massRemove() in ui/include/classes/api/services/CTemplateGroup.php.

To toggle search highlight, press Ctrl+Alt+H
Have an improvement suggestion for this page? Select the text that could be improved and press Ctrl+Enter to send it to the editors.