Devs, This has bitten us in indecent places time after time and after some contemplating the solution seems quite simple. An api call implemented in the TemplateService that lets you MarkTemplateAsSystemVmTemplate(optional uuid, optional name). No other params are needed as the template should allready contain most information. The actual marking code is implemented several upgrade versions and only needs to simplified from that implementation.
Do I miss something? -- Daan