Expand my Community achievements bar.

How to create room templates from code?

Avatar

Former Community Member

AccountManager class does have method cloneDefaultTemplate, but how can I configure it?

Best Regards, Aleksey

3 Replies

Avatar

Former Community Member

Hi Aleksey,

In general, the only way we provide for creating templates is via the Dev

Portal and the Room Console. There are classes in the framework to do so,

but they're unsupported. Can you explain why you need to build templates

programmatically?

nigel

Avatar

Former Community Member

I am working on a general framework which could be reused in different applications and for different lccs accounts. I have three application templates with different settings and collection nodes. I wanted to provide tool for lccs account configuration, which will create all templates and collection nodes. 

Best Regards, Aleksey

Avatar

Employee

One option to achieve what you want is to start from the basic template (or from one single template that is the "common denominator" among your templates and then when you create a room via the REST API create and configure all the node you need.

Basically you'll endup not using the standard template mechanism but having your application manage your template. Less than optimal but it would let you implement what you need.