templategroup.massupdate

    This method allows to replace templates with the specified ones in multiple template groups.

    This method is only available to Admin and Super admin user types. Permissions to call the method can be revoked in user role settings. See for more information.

    Parameters

    (object) Returns an object containing the IDs of the updated template groups under the property.

    Examples

    Replacing templates in a template group

    Replace all templates in a template group to ones mentioned templates.

    Response:

    1. {
    2. "jsonrpc": "2.0",
    3. "result": {
    4. "groupids": [
    5. ]
    6. },
    7. "id": 1
    8. }

    Source

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