On this page
templategroup.create
Description
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.
Parametri
"(object/array)" Gruppi di modelli da creare. Il metodo accetta gruppi di modelli con le proprietà del gruppo di modelli standard.
Valori restituiti
"(object)" Restituisce un oggetto contenente gli ID del modello creato
gruppi nella proprietà groupids. L'ordine degli ID restituiti
corrisponde all'ordine dei gruppi di modelli passati.
Esempi
Creating a template group
Create a template group called "Templates/Databases".
Request:
{
"jsonrpc": "2.0",
"method": "templategroup.create",
"params": {
"name": "Templates/Databases"
},
"auth": "038e1d7b1735c6a5436ee9eae095879e",
"id": 1
}
Response:
{
"jsonrpc": "2.0",
"result": {
"groupids": [
"107820"
]
},
"id": 1
}
Fonte
CTemplateGroup::create() in ui/include/classes/api/services/CTemplateGroup.php.