Configure daily route arrangements through the API
Set where a technician's day starts and ends (shops, company addresses, the person's own places), per organization and per day, without changing appointments.
Use /v1/schedule/route-settings to configure a technician's route arrangements.
These operations change route settings, not appointment times. Discover their
current permission requirements in the operations index.
Read and replace a layer
GET and PUT use the same path:
| Layer | Path below /route-settings |
Write permission |
|---|---|---|
| Organization | /organization |
schedule.settings.write or org.settings.write |
| Operating branch | /branches/{branch_uid} |
The organization settings permissions |
| Technician (this person's default in this organization) | /technicians/{resource_uid} |
the person themself, or schedule.resources.update |
| Working day | /technicians/{resource_uid}/days/{YYYY-MM-DD} |
the person themself, or schedule.edit |
A person may always set their own technician and day layers with schedule.view.
For anyone else the route answers 403 insufficient_permissions naming the key.
A GET returns uid, scope, settings and version. An absent override has
uid: null, settings: null and version: 0. A PUT replaces that layer and
must include both expected_uid and expected_version from the GET. Send
settings: null to clear the override and inherit again. A stale write returns
409, including when an override was deleted and recreated after the read.
{
"expected_uid": null,
"expected_version": 0,
"settings": {
"start": {"kind": "branch", "branch_uid": "branch_a1b2c3d4e5f6a1b2"},
"finish": {"kind": "return_to_start"},
"earliest_departure": "08:00:00",
"latest_finish": "17:00:00",
"travel_allowance_seconds": 300,
"traffic": "static",
"paid_travel": "between_visits"
}
}
Each non-null field overrides its inherited value. A start or finish choice is
one whole location; its fields are never combined with a different location.
Hours are local to the working day's scheduling timezone. Payroll choices
(between_visits, all_route, none) are separate from route feasibility.
Read the effective arrangement
GET /technicians/{resource_uid}/effective?day=YYYY-MM-DD returns all four
layers, effective values, each value's source, resolved start and finish and
ready. The branch layer belongs to the technician's operating branch;
changing the selected branch does not replace it.
When no layer chooses a start, Nova uses the person's operating branch (or the
organization's default branch) when that branch has coordinates, and reports
sources.start = "business_default". When no layer chooses a finish, the finish
is return_to_start (last_job after a first_job start). Without a branch pin,
an unconfigured start produces ready: false. Nova never silently excludes a
commute: explicit first_job and last_job choices report which driving is
excluded. A deleted place leaves a missing-setting state.
Choose a start or finish
kind |
Reference | Allowed on |
|---|---|---|
branch |
branch_uid |
every layer |
org_address |
address_uid (oaddr_…, a company address with coordinates) |
every layer |
place |
place_uid (uaddr_…, one of the person's own profile addresses with coordinates) |
technician and day only |
custom |
label + latitude + longitude |
day only |
first_job / last_job / return_to_start |
none | start / finish as named |
GET /technicians/{resource_uid}/start-choices lists what can be chosen for that
person: branches (the person's own marked own), organization_addresses and
places. Every entry is {uid, label, has_location}; a place never carries an
address or coordinates, to anyone. GET /choices lists branches and company
addresses for the organization and branch layers.
A person's places belong to the person, not to an organization: they are their
profile addresses (/v1/users/me/addresses/, with a label), managed only by that
person, and usable in every organization they belong to. Another caller can select
one by uid but never read it. For any caller other than the person, place
endpoints in /effective and in the daily route come back with latitude and
longitude set to null, and the first and last legs to or from them carry no
encoded_polyline; durations and distances remain. A place without coordinates is
refused with 422 route_place_needs_pin; a wrong-type or another person's uid
answers 404.
Use a current position deliberately
An own-technician day override can select kind: "custom" with a
label, finite latitude/longitude, position_captured_at and
position_accuracy_meters.
This is available only for today in the technician's effective scheduling
timezone. Capture must be recent, not in the future, with positive accuracy
no worse than 1,000 metres. The server independently validates those fields.
Another person's position cannot be submitted as their current location.
Both clients request foreground location only after a deliberate button tap, show the captured pin for review and save it through the conditional day-setting write. There is no background tracking or guessed home location. If capture is unavailable, choose an explicitly confirmed custom pin instead. Native users can edit today's or another selected day's start/finish override and return to inherited defaults; normal organization/branch/technician layers are managed in the web arrangement editor.