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

templategroup.massremove

Description

object templategroup.massremove(object parameters)

This method allows to remove related objects from multiple template groups.

This method is only available to Admin and Super admin user types. Permissions to call the method can be revoked in user role settings. See User roles for more information.

Parameters

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

Parameter Type Description
groupids
(required)
string/array IDs of the template groups to be updated.
templateids string/array Templates to remove from all template groups.

戻り値

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

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

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

リクエスト :

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

レスポンス:

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

ソース

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