[comment]: # translation:outdated

[comment]: # ({011dac20-f9e8f670})
# templategroup.propagate


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



[comment]: # ({new-b5ff62ed})
### Description

`object templategroup.propagate(object parameters)`

This method allows to apply permissions to all template groups' subgroups.

::: noteclassic
This method is only available to *Super admin* user types. 
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]: # ({new-6102edd8})
### Parameters

`(object)` Parameters defining the desired output.

The method supports the following parameters.

| Parameter            | [Type](/manual/api/reference_commentary#data_types) | Description                                                                             |
|----------------------|---------------------------------------------------|-----------------------------------------------------------------------------------------|
|**groups**<br>(required)|object/array|Template groups to propagate.<br><br>The template groups must have the `groupid` property defined. |
|**permissions**<br>(required)|boolean|Set `true` if need to propagate permissions.|


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



[comment]: # ({9ef1e089-fac1a1ce})
### 戻り値

`(object)` `groupids`プロパティの下に伝搬されたテンプレートグループのIDを含むオブジェクトを返します。

[comment]: # ({/9ef1e089-fac1a1ce})



[comment]: # ({b41637d2-0ed127f4})
### 例

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



[comment]: # ({66027f30-58284f05})
#### テンプレートグループの権限をそのサブグループへ伝搬する

テンプレートグループの権限をそのサブグループへ伝搬します。

[リクエスト](/manual/api#performing-requests) :

```json
{
    "jsonrpc": "2.0",
    "method": "templategroup.propagate",
    "params": {
        "groups": [
            {
                "groupid": "15"
            }
        ],
        "permissions": true
    },
    "id": 1
}
```

レスポンス :

```json
{
    "jsonrpc": "2.0",
    "result": {
        "groupids": [
            "15",
        ]
    },
    "id": 1
}
```

[comment]: # ({/66027f30-58284f05})



[comment]: # ({00455354-de4769f6})
### 参照

-   [templategroup.update](update)
-   [templategroup.massadd](massadd)
-   [Template](/manual/api/reference/template/object#template)

[comment]: # ({/00455354-de4769f6})



[comment]: # ({7cdbc801-870c4596})
### ソース

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

[comment]: # ({/7cdbc801-870c4596})
