Endpoints used for managing order-vehicle preference sets.
Order-vehicle preferences define soft constraints between orders and vehicles based on labels. Each preference rule links an order label to a vehicle label with a specific relationship type and a fine (penalty cost) that is applied when the preference is violated during planning.
Preference types:
FORBIDDEN_COMBINATION— Orders with the specified label are penalized when assigned to vehicles with the specified label.ORDER_REQUIRES_VEHICLE— Orders with the specified label prefer vehicles with the specified label; a fine is applied if assigned to a different vehicle.VEHICLE_REQUIRES_ORDER— Vehicles with the specified label prefer orders with the specified label; a fine is applied if assigned different orders.
Retrieve order-vehicle preference sets using cursor-based paging (see the Cursor-based pagination documentation on the PTV Developer Portal for more details).
Security
clientCredentials
- Mock serverhttps://developer.conundra.eu/_mock/apis/plannings/planning-api/settings/order-vehicle-preference-sets
- Production Apihttps://api.conundra.eu/planning/v1/settings/order-vehicle-preference-sets
curl -i -X GET \
'https://developer.conundra.eu/_mock/apis/plannings/planning-api/settings/order-vehicle-preference-sets?cursor=string&limit=100' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Response
{ "data": [ { … } ], "cursors": { "next": "bmV4dF9fcGFnZQ" } }