I'm trying to create a new site collection in sharepoint 2019 with the api
_api/SPSiteManager/create. The only template i can choose are
SITEPUBLISHING#0. If I choose any other template it will tell me :
"Performing this operation on a site with this template is not allowed."
Is there a way to create a new site collection with a custom template via api?