[comment]: # translation:outdated

[comment]: # ({c5e721d8-f9e8f670})
# templategroup.create

[comment]: # ({/c5e721d8-f9e8f670})

[comment]: # ({new-b5ff62ed})
### Description

`object templategroup.create(object/array templateGroups)`

This method allows to create new template groups.

::: noteclassic
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](/manual/web_interface/frontend_sections/administration/user_roles)
for more information.
:::

[comment]: # ({/new-b5ff62ed})

[comment]: # ({e4a03979-6102edd8})
### Parametri

"(object/array)" Gruppi di modelli da creare. Il metodo accetta gruppi di modelli
con le [proprietà del gruppo di modelli standard](object#template_group).

[comment]: # ({/e4a03979-6102edd8})

[comment]: # ({cd6782ad-76d53254})
### 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.

[comment]: # ({/cd6782ad-76d53254})

[comment]: # ({b41637d2-e8653e4d})
### Esempi 

[comment]: # ({/b41637d2-e8653e4d})

[comment]: # ({new-1aca44e8})
#### Creating a template group

Create a template group called "Templates/Databases".

Request:

``` {.java}
{
    "jsonrpc": "2.0",
    "method": "templategroup.create",
    "params": {
        "name": "Templates/Databases"
    },
    "auth": "038e1d7b1735c6a5436ee9eae095879e",
    "id": 1
}
```

Response:

``` {.java}
{
    "jsonrpc": "2.0",
    "result": {
        "groupids": [
            "107820"
        ]
    },
    "id": 1
}
```

[comment]: # ({/new-1aca44e8})

[comment]: # ({f3aa7eca-225e8cd3})
### Fonte

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

[comment]: # ({/f3aa7eca-225e8cd3})
