object templategroup.massupdate(object parameters)
このメソッドは、複数のテンプレートグループの指定されたテンプレートを置き換えることができます。
このメソッドは、AdminおよびSuper adminタイプのユーザーのみ利用可能です。メソッドを呼び出す権限は、ユーザーの役割の設定で取り消すことができます。詳細はユーザーの役割を参照してください。
(object)
Parameters containing the IDs of the template groups to update and the objects that should be updated.
Parameter | Type | Description |
---|---|---|
groups (required) |
object/array | Template groups to be updated. The template groups must have the groupid property defined. |
templates (required) |
object/array | Templates to replace the current template on the given template groups. All other template, except the ones mentioned, will be excluded from template groups. The templates must have the templateid property defined. |
(object)
groupids
プロパティの下に更新されたテンプレートグループのIDを含むオブジェクトを返します。
テンプレートグループ内のすべてのテンプレートを、指定のテンプレートに置き換えます。
リクエスト :
{
"jsonrpc": "2.0",
"method": "templategroup.massupdate",
"params": {
"groups": [
{
"groupid": "8"
}
],
"templates": [
{
"templateid": "40050"
}
]
},
"id": 1
}
レスポンス :
CTemplateGroup::massUpdate() in ui/include/classes/api/services/CTemplateGroup.php.