Template API

Hi
Could you please help?
Is it possible to create\apply "Template" with policies to customer tenant via API?