object templategroup.create(object/array templateGroups)
This method allows to create new template groups.
This method is only available to Super admin user type. Permissions to call the method can be revoked in user role settings. See User roles for more information.
(object/array)
Template groups to create. The method accepts template groups with the standard template group properties.
(object)
Returns an object containing the IDs of the created template groups under the groupids
property. The order of the returned IDs matches the order of the passed template groups.
"Templates/Databases"という名前のテンプレートグループを作成します。
リクエスト :
{
"jsonrpc": "2.0",
"method": "templategroup.create",
"params": {
"name": "Templates/Databases"
},
"id": 1
}
レスポンス :
CTemplateGroup::create() in ui/include/classes/api/services/CTemplateGroup.php.