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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"locationId": "<locationId>",
"name": "<name>"
},
"name": "create_territory"
}
}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. |