The current site API does not allow sites to be created using a site template. The requirement is to allow site creation in which an existing site template can be specified. The resulting site will be created based on the site template configuration.