object templategroup.massremove(object parameters)
このメソッドは、関連するオブジェクトを複数のテンプレートグループから削除することができます。
このメソッドは、AdminおよびSuper adminタイプのユーザーのみ利用可能です。メソッドを呼び出す権限は、ユーザーの役割の設定で取り消すことができます。詳細はユーザーの役割を参照してください。
(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
}
レスポンス:
CTemplateGroup::massRemove() in ui/include/classes/api/services/CTemplateGroup.php.