We have our custom portal where depending upon an action we want to create a territory (based on roles or from scratch), assign to user(s) and set up rules on basis of lead module. I have checked the API documentation link and cannot find any such API:
Please help if there is some way to automate territory management as we can do from UI via API or some other way.