Create plan
spoke_create_planWRITE: create a new route plan for a date (no stops yet, nothing is sent to drivers). Optionally assign drivers (up to 50, they must be active and share the plan's depot) and a depot (default: the team's main depot). Does not optimize or distribute. POST /plans.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | ||
| depot_id | No | Depot id ('abc' or 'depots/abc'). | |
| starts_on | Yes | Plan date, yyyy-mm-dd (Spoke rejects dates too far in the past or future). | |
| driver_ids | No | Driver ids ('abc' or 'drivers/abc'). |