Apart from drawing your territory on the map or defining territory's geography using geo-library, you may also upload territory shapefile from either GeoJSON or KML file format.
1- Click New territory from file in the Territories panel
2- In the Import territories pop-up select either GeoJSON or KML file and click upload
3- Name the territory
Optionally, you can specify the territory group as well as choose to import your territory as either:
one territory
multiple territories
You can also select to delete simple object (points, lines).
4- When you're done configuring your territory for upload, click Import to finish importing your territory.