Create or update a plan's resource
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The agency id.
^[A-Z]{3,6}_[a-zA-Z0-9-._~:@!$,]+$"LND_Agency-42"
The plan id. At least one character among those allowed: unaccented alpha-numeric characters, "-", ".", "_", "~", ":", "@", "!", "$", ",".
^[a-zA-Z0-9-._~:@!$,]+$The resource id. At least one character among those allowed: unaccented alpha-numeric characters, "-", ".", "_", "~", ":", "@", "!", "$", ",".
^[a-zA-Z0-9-._~:@!$,]+$Query Parameters
If true, on an archived item, the requested action will be forced and the item will be unarchived.
Body
The Resource to update.
[TO_VALIDATE] Description pending review by a Kardinal engineer.
Resource ids must be unique within a plan.
^[a-zA-Z0-9-._~:@!$,]+$Describes how this resource travels between stops: the mode of transport and its constraints. One of fly, pedestrian, bicycle, scooter, motorbike, car, or truck, each exposing different parameters (for example traffic sensitivity, weight, or hazardous goods restrictions).
- Option 1
- Option 2
- Option 3
- Option 4
- Option 5
- Option 6
- Option 7
The time window during which the resource is available to work. Often used together with maxWorkingDuration.
Free-form key-value pairs (strings only) with no impact on optimization, such as the driver's name. Returned unchanged in the plan and its solution.
[TO_VALIDATE] Believed to describe the resource's manual-mode state (current mode and any forced stop/break assignments), used by the manual planning endpoints. Needs confirmation.
Defines a custom cost model for this resource (for example per kilometer, per capacity unit transported, or a fixed cost), used by the minimizeCosts objective. See the Cost schema below for every available cost component and its semantics.
Optional CO2 emission calculation parameters for this resource. The object is Cost-shaped.
Typical fields:
km: emission per travelled kilometre (e.g.costCoeffin g/km);costPerCapacityPerTravelledKm: per-capacity emission per travelled kilometre;costPerCapacityPerTravelledHour: per-capacity emission per travel hour (travel duration only). When set, the resulting emissions are reported on the tour asCO2Emission. Takes precedence over any matching plan-level declaration.
0 by default, can be negative.
At least one character among those allowed: unaccented alpha-numeric characters, "-", ".", "_", "~", ":", "@", "!", "$", ",".
^[a-zA-Z0-9-._~:@!$,]+$At least one character among those allowed: unaccented alpha-numeric characters, "-", ".", "_", "~", ":", "@", "!", "$", ",".
^[a-zA-Z0-9-._~:@!$,]+$At least one character among those allowed: unaccented alpha-numeric characters, "-", ".", "_", "~", ":", "@", "!", "$", ",".
^[a-zA-Z0-9-._~:@!$,]+$The carrying capacity of the resource, as free-form key-value pairs (for example weight, volume, or temperature zones). The same capacity keys must also be declared on eligible stops for the algorithm to assign them to this resource.
The starting location of the resource's route, typically a home or depot. If omitted, the algorithm assumes working time starts from the first visited stop.
The ending location of the resource's route, typically a home or depot. If omitted, the algorithm assumes working time ends at the last visited stop.
A period of time, expressed in the ISO8601 duration format.
^P(\d+Y)?(\d+M)?(\d+W)?(\d+D)?(T(\d+H)?(\d+M)?(\d+S)?)?$"PT4M"
The maximum distance the resource can travel, used to constrain its service area.
Maximum distance, in km, between two consecutive stops on a tour. Accepts either:
- a scalar value — applied uniformly to every travel of the tour;
- a structured object with independent bounds per segment (
firstTravel,interStop,lastTravel); an absent key means no constraint on that segment.
50
Maximum duration between two consecutive stops on a tour. Accepts either:
- a scalar value — applied uniformly to every travel of the tour;
- a structured object with independent bounds per segment (
firstTravel,interStop,lastTravel); an absent key means no constraint on that segment.
^P(\d+Y)?(\d+M)?(\d+W)?(\d+D)?(T(\d+H)?(\d+M)?(\d+S)?)?$"PT4M"
The breaks (lunch, legal driving/working breaks, etc.) the resource must take during its working time window. Breaks count as working time unless stated otherwise.
[TO_VALIDATE] Description pending review by a Kardinal engineer.
- Option 1
- Option 2
- Option 3
[TO_VALIDATE] Believed to be a multiplier applied to this resource's travel time calculations. Exact behavior needs confirmation.
1.05
Thresholds for capacities below which a resource is considered "empty" for empty distance calculation. A resource is "empty" (kilometers traveled count as empty distance) when all capacities are at or below their threshold.
Early loading declarations for this resource. Each entry identifies a stop tag and optional capacities used to compute the minimizeEarlyLoadings objective.
Response
Resource response updated.
[TO_VALIDATE] Description pending review by a Kardinal engineer.
[TO_VALIDATE] Description pending review by a Kardinal engineer.
The agency id.
^[A-Z]{3,6}_[a-zA-Z0-9-._~:@!$,]+$"LND_Agency-42"
The plan id.
^[a-zA-Z0-9-._~:@!$,]+$"plan-AB"
The plan version.
x >= 142