Create a territory
create_territoryCreate an empty territory owned by one location (dealer). It covers nothing until postcodes are added with add_territory_postcodes, and nothing reaches a visitor until publish_territories. Polygons and regions are drawn on the map in the dashboard.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | What the territory is called, for create. | |
| rank | No | Lower wins when two territories cover the same address. Default 0. | |
| exclusive | No | An exclusive territory returns only its owner for a covered address; otherwise the owner is pinned to the top and the rest still show. | |
| locationId | Yes | The dealer that owns this territory, for create. |