Quick reference of every field on the territory record and where it
lives in the UI.
Territory core
| Field | Where in the UI | Notes |
|---|---|---|
| Name | Basics | Required. Shown everywhere. |
| Description | Basics | Optional internal note. |
| Color | Basics | Hex; used on maps, badges, filter chips. |
| Boundary type | Basics | `zip`, `polygon`, or `hybrid`. |
| Target stop count | Basics | Optional integer. Route Plan uses it. |
| Target start time | Basics | HH:MM. Default service window start. |
| Target end time | Basics | HH:MM. Default service window end. |
| Notes | Basics (via description) | Internal only. |
| Active | Basics + list row | Toggle. Turns off auto-assignment and dispatch overlay. |
Boundary
| Field | Where in the UI | Notes |
|---|---|---|
| ZIP codes | Boundary → ZIP editor | Textarea, comma/space/newline separated. CSV upload supported. |
| Polygon | Boundary → Polygon map | GeoJSON polygon(s). Draw, import, or export. |
Drivers
| Field | Where in the UI | Notes |
|---|---|---|
| Driver user_id | Drivers tab | Must be a user with the driver role in your org. |
| Role | Drivers tab | `primary` or `backup`. |
| Truck | (coming soon) | Not yet exposed. |
Schedule
| Field | Where in the UI | Notes |
|---|---|---|
| Day of week | Schedule tab | 0 (Sun) through 6 (Sat). |
| Frequency | Schedule tab | `weekly`, `biweekly`, `monthly`, `first_of_month`, `specific_weeks`. |
| Specific weeks | Schedule tab (Wk 1-5 buttons) | Only meaningful when frequency is `specific_weeks`. |
Services
| Field | Where in the UI | Notes |
|---|---|---|
| Service ID | Services tab | Must be a service in your org's Services catalog. |
