Programatically define collection

How to define a collection from api

TaminoSchemaCommand.Define probably does what you want.