{"id":1123,"date":"2026-11-24T13:30:30","date_gmt":"2026-11-24T13:30:30","guid":{"rendered":"https:\/\/apioptim.com\/assignments-priorities-and-unscheduled-operations\/"},"modified":"2026-11-26T11:55:16","modified_gmt":"2026-11-26T11:55:16","slug":"assignments-priorities-unscheduled-operations","status":"publish","type":"page","link":"https:\/\/apioptim.com\/en\/assignments-priorities-unscheduled-operations\/","title":{"rendered":"Assignments, priorities and unscheduled operations"},"content":{"rendered":"\n<section class=\"wp-block-group alignfull has-main-color has-tertiary-background-color has-text-color has-background has-link-color wp-elements-1 has-global-padding is-layout-constrained wp-container-core-group-is-layout-90b67451 wp-block-group-is-layout-constrained\" style=\"margin-top:0;margin-bottom:0;padding-top:var(--wp--preset--spacing--large);padding-right:var(--wp--preset--spacing--medium);padding-bottom:0;padding-left:var(--wp--preset--spacing--medium)\">\n<p class=\"alignwide apo-breadcrumb wp-block-paragraph\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-secondary-color\">Features<\/mark> \u203a Assignments, priorities and unscheduled operations<\/p>\n\n\n\n<div class=\"wp-block-group alignwide has-global-padding is-content-justification-left is-layout-constrained wp-container-core-group-is-layout-db4b1562 wp-block-group-is-layout-constrained\">\n<h1 class=\"wp-block-heading\">Assignments, priorities and unscheduled operations<\/h1>\n\n\n\n<p class=\"has-secondary-color has-text-color has-base-font-size wp-block-paragraph\">Impose a vehicle or depot on an operation, give priorities to orders and vehicles, and limit the activity of each lorry. When not everything can be scheduled, API Optim lists the rejected operations and their probable causes.<\/p>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\" style=\"margin-top:var(--wp--preset--spacing--small)\">\n<div class=\"wp-block-button apo-arrow apo-arrow--external\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/api-optim.sinari.com\/doc\/mpt\/docs\/mpt\/fonctionnalites\/featuresSynthesis\" target=\"_blank\" rel=\"noopener\">Read the documentation<\/a><\/div>\n\n\n\n<div class=\"wp-block-button is-style-outline apo-arrow is-style-outline--1\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/apioptim.com\/en\/book-a-demo\/\">Request a demo<\/a><\/div>\n<\/div>\n<\/div>\n\n\n\n<hr class=\"wp-block-separator alignwide has-text-color has-border-light-color has-alpha-channel-opacity has-border-light-background-color has-background is-style-wide\"\/>\n<\/section>\n\n<section class=\"wp-block-group alignfull has-main-color has-tertiary-background-color has-text-color has-background has-link-color wp-elements-2 has-global-padding is-layout-constrained wp-container-core-group-is-layout-5c440928 wp-block-group-is-layout-constrained\" style=\"margin-top:0;margin-bottom:0;padding-top:var(--wp--preset--spacing--large);padding-right:var(--wp--preset--spacing--medium);padding-bottom:var(--wp--preset--spacing--xx-large);padding-left:var(--wp--preset--spacing--medium)\">\n<div class=\"wp-block-columns alignwide are-vertically-aligned-center is-layout-flex wp-container-core-columns-is-layout-60fdf410 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-vertically-aligned-center is-layout-flow wp-container-core-column-is-layout-ad406c26 wp-block-column-is-layout-flow\" style=\"flex-basis:52%\">\n<p class=\"apo-eyebrow wp-block-paragraph\">What the API handles<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Your customers\u2019 <em>planning rules.<\/em><\/h2>\n\n\n\n<p class=\"has-secondary-color has-text-color has-base-font-size wp-block-paragraph\">Imposed assignments and priorities are declared on operations, a site\u2019s position in its logistics profile, and activity limits on vehicle types and their availability periods. The extract opposite shows where each parameter goes; each card below links to its page in the technical documentation.<\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-vertically-aligned-center is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:48%\">\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1108\" height=\"812\" src=\"https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/assignments-priorities-json-structure.webp\" alt=\"API Optim JSON structure grouping assignments, priorities and limits: operation with priority, splitting allowed, imposed vehicle and group, maximum number of sites per route, usage priority and maximum number of routes per period\" class=\"wp-image-1170\" srcset=\"https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/assignments-priorities-json-structure.webp 1108w, https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/assignments-priorities-json-structure-300x220.webp 300w, https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/assignments-priorities-json-structure-1024x750.webp 1024w, https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/assignments-priorities-json-structure-768x563.webp 768w\" sizes=\"auto, (max-width: 1108px) 100vw, 1108px\" \/><\/figure>\n<\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-group alignwide is-layout-flow wp-container-core-group-is-layout-414b44ad wp-block-group-is-layout-flow\">\n<h3 class=\"wp-block-heading apo-group-title\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-primary-color\">01<\/mark> Imposed assignments<\/h3>\n\n\n\n<div class=\"wp-block-group is-layout-grid wp-container-core-group-is-layout-aaf97638 wp-block-group-is-layout-grid\">\n<div class=\"wp-block-group apo-card-flex has-border-color has-main-accent-border-color has-base-background-color has-background is-layout-flow wp-container-core-group-is-layout-fc2cdec4 wp-block-group-is-layout-flow\" style=\"border-width:1px;border-radius:20px;padding-top:30px;padding-right:30px;padding-bottom:30px;padding-left:30px\">\n<figure class=\"wp-block-image size-full is-resized\" style=\"margin-bottom:var(--wp--preset--spacing--medium)\"><img loading=\"lazy\" decoding=\"async\" width=\"153\" height=\"153\" src=\"https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/affectations-priorites-icone-vehicule-impose.webp\" alt=\"\" class=\"wp-image-790\" style=\"width:51px;height:auto\" srcset=\"https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/affectations-priorites-icone-vehicule-impose.webp 153w, https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/affectations-priorites-icone-vehicule-impose-150x150.webp 150w\" sizes=\"auto, (max-width: 153px) 100vw, 153px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Operation reserved for a vehicle<\/h3>\n\n\n\n<p class=\"has-secondary-color has-text-color has-small-font-size wp-block-paragraph\">Impose the vehicle, and its availability period if needed, when you know in advance who must carry out the operation. It is scheduled on that vehicle or rejected.<\/p>\n\n\n\n<p class=\"apo-chips wp-block-paragraph\"><code>truckAssignment<\/code> <code>idTruck<\/code> <code>idAvailablePeriod<\/code><\/p>\n\n\n\n<p class=\"apo-link apo-link--external wp-block-paragraph\"><a href=\"https:\/\/api-optim.sinari.com\/doc\/mpt\/docs\/mpt\/fonctionnalites\/preaffectationOpVehicule\" target=\"_blank\" rel=\"noopener\">View the technical page<\/a><\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-group apo-card-flex has-border-color has-main-accent-border-color has-base-background-color has-background is-layout-flow wp-container-core-group-is-layout-fc2cdec4 wp-block-group-is-layout-flow\" style=\"border-width:1px;border-radius:20px;padding-top:30px;padding-right:30px;padding-bottom:30px;padding-left:30px\">\n<figure class=\"wp-block-image size-full is-resized\" style=\"margin-bottom:var(--wp--preset--spacing--medium)\"><img loading=\"lazy\" decoding=\"async\" width=\"153\" height=\"153\" src=\"https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/affectations-priorites-icone-depot-rattache.webp\" alt=\"\" class=\"wp-image-781\" style=\"width:51px;height:auto\" srcset=\"https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/affectations-priorites-icone-depot-rattache.webp 153w, https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/affectations-priorites-icone-depot-rattache-150x150.webp 150w\" sizes=\"auto, (max-width: 153px) 100vw, 153px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Operation attached to a depot<\/h3>\n\n\n\n<p class=\"has-secondary-color has-text-color has-small-font-size wp-block-paragraph\">Specify the depot where a collection is unloaded, or the one where a delivery is loaded. The solution respects this link.<\/p>\n\n\n\n<p class=\"apo-chips wp-block-paragraph\"><code>idSiteOrigin<\/code> <code>idSiteDestination<\/code><\/p>\n\n\n\n<p class=\"apo-link apo-link--external wp-block-paragraph\"><a href=\"https:\/\/api-optim.sinari.com\/doc\/mpt\/docs\/mpt\/fonctionnalites\/affectationOpDepot\/pre_assigned_depots\" target=\"_blank\" rel=\"noopener\">View the technical page<\/a><\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-group apo-card-flex has-border-color has-main-accent-border-color has-base-background-color has-background is-layout-flow wp-container-core-group-is-layout-fc2cdec4 wp-block-group-is-layout-flow\" style=\"border-width:1px;border-radius:20px;padding-top:30px;padding-right:30px;padding-bottom:30px;padding-left:30px\">\n<figure class=\"wp-block-image size-full is-resized\" style=\"margin-bottom:var(--wp--preset--spacing--medium)\"><img loading=\"lazy\" decoding=\"async\" width=\"153\" height=\"153\" src=\"https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/affectations-priorites-icone-operations-regroupees.webp\" alt=\"\" class=\"wp-image-784\" style=\"width:51px;height:auto\" srcset=\"https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/affectations-priorites-icone-operations-regroupees.webp 153w, https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/affectations-priorites-icone-operations-regroupees-150x150.webp 150w\" sizes=\"auto, (max-width: 153px) 100vw, 153px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Grouped operations<\/h3>\n\n\n\n<p class=\"has-secondary-color has-text-color has-small-font-size wp-block-paragraph\">Give the same group identifier to operations at different sites to favour scheduling them on the same route.<\/p>\n\n\n\n<p class=\"apo-chips wp-block-paragraph\"><code>idGroup<\/code><\/p>\n\n\n\n<p class=\"apo-link apo-link--external wp-block-paragraph\"><a href=\"https:\/\/api-optim.sinari.com\/doc\/mpt\/docs\/mpt\/fonctionnalites\/groupage\" target=\"_blank\" rel=\"noopener\">View the technical page<\/a><\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-group apo-card-flex has-border-color has-main-accent-border-color has-base-background-color has-background is-layout-flow wp-container-core-group-is-layout-fc2cdec4 wp-block-group-is-layout-flow\" style=\"border-width:1px;border-radius:20px;padding-top:30px;padding-right:30px;padding-bottom:30px;padding-left:30px\">\n<figure class=\"wp-block-image size-full is-resized\" style=\"margin-bottom:var(--wp--preset--spacing--medium)\"><img loading=\"lazy\" decoding=\"async\" width=\"153\" height=\"153\" src=\"https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/affectations-priorites-icone-position-site.webp\" alt=\"\" class=\"wp-image-785\" style=\"width:51px;height:auto\" srcset=\"https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/affectations-priorites-icone-position-site.webp 153w, https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/affectations-priorites-icone-position-site-150x150.webp 150w\" sizes=\"auto, (max-width: 153px) 100vw, 153px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Site position on the route<\/h3>\n\n\n\n<p class=\"has-secondary-color has-text-color has-small-font-size wp-block-paragraph\">Put a site first on the route, or give it a route of its own. The other sites are placed as best they can be.<\/p>\n\n\n\n<p class=\"apo-chips wp-block-paragraph\"><code>positionOnRoute<\/code> <code>FIRST<\/code> <code>SITE_ALONE<\/code><\/p>\n\n\n\n<p class=\"apo-link apo-link--external wp-block-paragraph\"><a href=\"https:\/\/api-optim.sinari.com\/doc\/mpt\/docs\/mpt\/fonctionnalites\/positionSite\" target=\"_blank\" rel=\"noopener\">View the technical page<\/a><\/p>\n<\/div>\n<\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-group alignwide is-layout-flow wp-container-core-group-is-layout-414b44ad wp-block-group-is-layout-flow\">\n<h3 class=\"wp-block-heading apo-group-title\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-primary-color\">02<\/mark> Priorities<\/h3>\n\n\n\n<div class=\"wp-block-group is-layout-grid wp-container-core-group-is-layout-aaf97638 wp-block-group-is-layout-grid\">\n<div class=\"wp-block-group apo-card-flex has-border-color has-main-accent-border-color has-base-background-color has-background is-layout-flow wp-container-core-group-is-layout-fc2cdec4 wp-block-group-is-layout-flow\" style=\"border-width:1px;border-radius:20px;padding-top:30px;padding-right:30px;padding-bottom:30px;padding-left:30px\">\n<figure class=\"wp-block-image size-full is-resized\" style=\"margin-bottom:var(--wp--preset--spacing--medium)\"><img loading=\"lazy\" decoding=\"async\" width=\"153\" height=\"153\" src=\"https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/affectations-priorites-icone-priorite-operations.webp\" alt=\"\" class=\"wp-image-786\" style=\"width:51px;height:auto\" srcset=\"https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/affectations-priorites-icone-priorite-operations.webp 153w, https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/affectations-priorites-icone-priorite-operations-150x150.webp 150w\" sizes=\"auto, (max-width: 153px) 100vw, 153px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Operation priority<\/h3>\n\n\n\n<p class=\"has-secondary-color has-text-color has-small-font-size wp-block-paragraph\">When the fleet is not enough to schedule everything, give each operation a priority level. Which way the scale reads is set in the profile, and a dedicated optimisation criterion, defined with our experts, takes it fully into account.<\/p>\n\n\n\n<p class=\"apo-chips wp-block-paragraph\"><code>priority<\/code> <code>operationsPriorities<\/code><\/p>\n\n\n\n<p class=\"apo-link apo-link--external wp-block-paragraph\"><a href=\"https:\/\/api-optim.sinari.com\/doc\/mpt\/docs\/mpt\/fonctionnalites\/priorisationOperations\" target=\"_blank\" rel=\"noopener\">View the technical page<\/a><\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-group apo-card-flex has-border-color has-main-accent-border-color has-base-background-color has-background is-layout-flow wp-container-core-group-is-layout-fc2cdec4 wp-block-group-is-layout-flow\" style=\"border-width:1px;border-radius:20px;padding-top:30px;padding-right:30px;padding-bottom:30px;padding-left:30px\">\n<figure class=\"wp-block-image size-full is-resized\" style=\"margin-bottom:var(--wp--preset--spacing--medium)\"><img loading=\"lazy\" decoding=\"async\" width=\"153\" height=\"153\" src=\"https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/affectations-priorites-icone-priorite-vehicules.webp\" alt=\"\" class=\"wp-image-787\" style=\"width:51px;height:auto\" srcset=\"https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/affectations-priorites-icone-priorite-vehicules.webp 153w, https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/affectations-priorites-icone-priorite-vehicules-150x150.webp 150w\" sizes=\"auto, (max-width: 153px) 100vw, 153px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Vehicle usage priority<\/h3>\n\n\n\n<p class=\"has-secondary-color has-text-color has-small-font-size wp-block-paragraph\">When there are more vehicles than needed, favour certain availability periods. The lower the value, the higher the period\u2019s priority, with the appropriate optimisation criteria.<\/p>\n\n\n\n<p class=\"apo-chips wp-block-paragraph\"><code>usePriority<\/code><\/p>\n\n\n\n<p class=\"apo-link apo-link--external wp-block-paragraph\"><a href=\"https:\/\/api-optim.sinari.com\/doc\/mpt\/docs\/mpt\/fonctionnalites\/priorisationMoyens\" target=\"_blank\" rel=\"noopener\">View the technical page<\/a><\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-group apo-card-flex has-border-color has-main-accent-border-color has-base-background-color has-background is-layout-flow wp-container-core-group-is-layout-fc2cdec4 wp-block-group-is-layout-flow\" style=\"border-width:1px;border-radius:20px;padding-top:30px;padding-right:30px;padding-bottom:30px;padding-left:30px\">\n<figure class=\"wp-block-image size-full is-resized\" style=\"margin-bottom:var(--wp--preset--spacing--medium)\"><img loading=\"lazy\" decoding=\"async\" width=\"153\" height=\"153\" src=\"https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/affectations-priorites-icone-criteres-optimisation.webp\" alt=\"\" class=\"wp-image-780\" style=\"width:51px;height:auto\" srcset=\"https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/affectations-priorites-icone-criteres-optimisation.webp 153w, https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/affectations-priorites-icone-criteres-optimisation-150x150.webp 150w\" sizes=\"auto, (max-width: 153px) 100vw, 153px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Optimisation criteria<\/h3>\n\n\n\n<p class=\"has-secondary-color has-text-color has-small-font-size wp-block-paragraph\">Choose what the calculation aims to improve, in order: rejected operations, distance\u2026 These criteria are set with our experts.<\/p>\n\n\n\n<p class=\"apo-chips wp-block-paragraph\"><code>valorizations<\/code><\/p>\n\n\n\n<p class=\"apo-link apo-link--external wp-block-paragraph\"><a href=\"https:\/\/api-optim.sinari.com\/doc\/mpt\/docs\/mpt\/fonctionnalites\/routeProfile\/valorizations\" target=\"_blank\" rel=\"noopener\">View the technical page<\/a><\/p>\n<\/div>\n<\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-group alignwide is-layout-flow wp-container-core-group-is-layout-414b44ad wp-block-group-is-layout-flow\">\n<h3 class=\"wp-block-heading apo-group-title\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-primary-color\">03<\/mark> Activity limits<\/h3>\n\n\n\n<div class=\"wp-block-group is-layout-grid wp-container-core-group-is-layout-aaf97638 wp-block-group-is-layout-grid\">\n<div class=\"wp-block-group apo-card-flex has-border-color has-main-accent-border-color has-base-background-color has-background is-layout-flow wp-container-core-group-is-layout-fc2cdec4 wp-block-group-is-layout-flow\" style=\"border-width:1px;border-radius:20px;padding-top:30px;padding-right:30px;padding-bottom:30px;padding-left:30px\">\n<figure class=\"wp-block-image size-full is-resized\" style=\"margin-bottom:var(--wp--preset--spacing--medium)\"><img loading=\"lazy\" decoding=\"async\" width=\"153\" height=\"153\" src=\"https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/affectations-priorites-icone-sites-par-tournee.webp\" alt=\"\" class=\"wp-image-788\" style=\"width:51px;height:auto\" srcset=\"https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/affectations-priorites-icone-sites-par-tournee.webp 153w, https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/affectations-priorites-icone-sites-par-tournee-150x150.webp 150w\" sizes=\"auto, (max-width: 153px) 100vw, 153px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Number of sites per route<\/h3>\n\n\n\n<p class=\"has-secondary-color has-text-color has-small-font-size wp-block-paragraph\">Limit the number of collection or delivery sites on a route, per vehicle type. Depots, yards and uncoupling sites are not counted.<\/p>\n\n\n\n<p class=\"apo-chips wp-block-paragraph\"><code>maxSitesPerRoute<\/code><\/p>\n\n\n\n<p class=\"apo-link apo-link--external wp-block-paragraph\"><a href=\"https:\/\/api-optim.sinari.com\/doc\/mpt\/docs\/mpt\/fonctionnalites\/limiterActiviteVehicule\/limiter_nombre_sites_par_tour\" target=\"_blank\" rel=\"noopener\">View the technical page<\/a><\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-group apo-card-flex has-border-color has-main-accent-border-color has-base-background-color has-background is-layout-flow wp-container-core-group-is-layout-fc2cdec4 wp-block-group-is-layout-flow\" style=\"border-width:1px;border-radius:20px;padding-top:30px;padding-right:30px;padding-bottom:30px;padding-left:30px\">\n<figure class=\"wp-block-image size-full is-resized\" style=\"margin-bottom:var(--wp--preset--spacing--medium)\"><img loading=\"lazy\" decoding=\"async\" width=\"153\" height=\"153\" src=\"https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/affectations-priorites-icone-tournees-par-periode.webp\" alt=\"\" class=\"wp-image-789\" style=\"width:51px;height:auto\" srcset=\"https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/affectations-priorites-icone-tournees-par-periode.webp 153w, https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/affectations-priorites-icone-tournees-par-periode-150x150.webp 150w\" sizes=\"auto, (max-width: 153px) 100vw, 153px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Number of routes per period<\/h3>\n\n\n\n<p class=\"has-secondary-color has-text-color has-small-font-size wp-block-paragraph\">Limit the number of routes a vehicle can run within an availability period.<\/p>\n\n\n\n<p class=\"apo-chips wp-block-paragraph\"><code>maxRoutes<\/code><\/p>\n\n\n\n<p class=\"apo-link apo-link--external wp-block-paragraph\"><a href=\"https:\/\/api-optim.sinari.com\/doc\/mpt\/docs\/mpt\/fonctionnalites\/limiterActiviteVehicule\/limiter_nombre_tours_par_poste\" target=\"_blank\" rel=\"noopener\">View the technical page<\/a><\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-group apo-card-flex has-border-color has-main-accent-border-color has-base-background-color has-background is-layout-flow wp-container-core-group-is-layout-fc2cdec4 wp-block-group-is-layout-flow\" style=\"border-width:1px;border-radius:20px;padding-top:30px;padding-right:30px;padding-bottom:30px;padding-left:30px\">\n<figure class=\"wp-block-image size-full is-resized\" style=\"margin-bottom:var(--wp--preset--spacing--medium)\"><img loading=\"lazy\" decoding=\"async\" width=\"153\" height=\"153\" src=\"https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/affectations-priorites-icone-operation-repartie.webp\" alt=\"\" class=\"wp-image-782\" style=\"width:51px;height:auto\" srcset=\"https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/affectations-priorites-icone-operation-repartie.webp 153w, https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/affectations-priorites-icone-operation-repartie-150x150.webp 150w\" sizes=\"auto, (max-width: 153px) 100vw, 153px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Operation split across several routes<\/h3>\n\n\n\n<p class=\"has-secondary-color has-text-color has-small-font-size wp-block-paragraph\">Allow the API to split an operation that is too large for one vehicle and schedule its parts across several routes.<\/p>\n\n\n\n<p class=\"apo-chips wp-block-paragraph\"><code>splittable<\/code> <code>idxSplit<\/code><\/p>\n\n\n\n<p class=\"apo-link apo-link--external wp-block-paragraph\"><a href=\"https:\/\/api-optim.sinari.com\/doc\/mpt\/docs\/mpt\/fonctionnalites\/decoupes\" target=\"_blank\" rel=\"noopener\">View the technical page<\/a><\/p>\n<\/div>\n<\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-group alignwide is-layout-flow wp-container-core-group-is-layout-414b44ad wp-block-group-is-layout-flow\">\n<h3 class=\"wp-block-heading apo-group-title\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-primary-color\">04<\/mark> Unscheduled operations<\/h3>\n\n\n\n<div class=\"wp-block-group is-layout-grid wp-container-core-group-is-layout-aaf97638 wp-block-group-is-layout-grid\">\n<div class=\"wp-block-group apo-card-flex has-border-color has-main-accent-border-color has-base-background-color has-background is-layout-flow wp-container-core-group-is-layout-fc2cdec4 wp-block-group-is-layout-flow\" style=\"border-width:1px;border-radius:20px;padding-top:30px;padding-right:30px;padding-bottom:30px;padding-left:30px\">\n<figure class=\"wp-block-image size-full is-resized\" style=\"margin-bottom:var(--wp--preset--spacing--medium)\"><img loading=\"lazy\" decoding=\"async\" width=\"153\" height=\"153\" src=\"https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/affectations-priorites-icone-operations-non-planifiees.webp\" alt=\"\" class=\"wp-image-783\" style=\"width:51px;height:auto\" srcset=\"https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/affectations-priorites-icone-operations-non-planifiees.webp 153w, https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/affectations-priorites-icone-operations-non-planifiees-150x150.webp 150w\" sizes=\"auto, (max-width: 153px) 100vw, 153px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">List of unscheduled operations<\/h3>\n\n\n\n<p class=\"has-secondary-color has-text-color has-small-font-size wp-block-paragraph\">Operations the API could not schedule are listed in the solution. Your software can show them to the planner.<\/p>\n\n\n\n<p class=\"apo-chips wp-block-paragraph\"><code>rejectOperations<\/code><\/p>\n\n\n\n<p class=\"apo-link apo-link--external wp-block-paragraph\"><a href=\"https:\/\/api-optim.sinari.com\/doc\/mpt\/docs\/mpt\/useCases\/globalOptimization\/optRejectedOperation\" target=\"_blank\" rel=\"noopener\">View the technical page<\/a><\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-group apo-card-flex has-border-color has-main-accent-border-color has-base-background-color has-background is-layout-flow wp-container-core-group-is-layout-fc2cdec4 wp-block-group-is-layout-flow\" style=\"border-width:1px;border-radius:20px;padding-top:30px;padding-right:30px;padding-bottom:30px;padding-left:30px\">\n<figure class=\"wp-block-image size-full is-resized\" style=\"margin-bottom:var(--wp--preset--spacing--medium)\"><img loading=\"lazy\" decoding=\"async\" width=\"153\" height=\"153\" src=\"https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/affectations-priorites-icone-causes-probables.webp\" alt=\"\" class=\"wp-image-779\" style=\"width:51px;height:auto\" srcset=\"https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/affectations-priorites-icone-causes-probables.webp 153w, https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/affectations-priorites-icone-causes-probables-150x150.webp 150w\" sizes=\"auto, (max-width: 153px) 100vw, 153px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Probable causes<\/h3>\n\n\n\n<p class=\"has-secondary-color has-text-color has-small-font-size wp-block-paragraph\">For each unscheduled operation, the API can give probable causes, with a code and a message: end of time window exceeded, operation too far from the route\u2026<\/p>\n\n\n\n<p class=\"apo-chips wp-block-paragraph\"><code>rejectionCauses<\/code> <code>constraintViolation<\/code><\/p>\n\n\n\n<p class=\"apo-link apo-link--external wp-block-paragraph\"><a href=\"https:\/\/api-optim.sinari.com\/doc\/mpt\/docs\/mpt\/useCases\/globalOptimization\/optReasonsRejectedOperation\" target=\"_blank\" rel=\"noopener\">View the technical page<\/a><\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/section>\n\n<section class=\"wp-block-group alignfull has-main-color has-base-background-color has-text-color has-background has-link-color wp-elements-3 has-global-padding is-layout-constrained wp-container-core-group-is-layout-6097bdb0 wp-block-group-is-layout-constrained\" style=\"margin-top:0;margin-bottom:0;padding-top:var(--wp--preset--spacing--xx-large);padding-right:var(--wp--preset--spacing--medium);padding-bottom:var(--wp--preset--spacing--xx-large);padding-left:var(--wp--preset--spacing--medium)\">\n<div class=\"wp-block-group alignwide has-global-padding is-content-justification-left is-layout-constrained wp-container-core-group-is-layout-94106c33 wp-block-group-is-layout-constrained\">\n<p class=\"apo-eyebrow wp-block-paragraph\">Annotated example<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">An unscheduled order, <em>with its probable causes.<\/em><\/h2>\n<\/div>\n\n\n\n<div class=\"wp-block-columns alignwide is-layout-flex wp-container-core-columns-is-layout-947d9d8b wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1270\" height=\"712\" src=\"https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/assignments-priorities-example-request.webp\" alt=\"JSON request: COMPUTE_ROUTES global calculation with service times set to one hour per site and per operation, and rejection causes enabled in the calculation profile\" class=\"wp-image-1171\" srcset=\"https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/assignments-priorities-example-request.webp 1270w, https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/assignments-priorities-example-request-300x168.webp 300w, https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/assignments-priorities-example-request-1024x574.webp 1024w, https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/assignments-priorities-example-request-768x431.webp 768w\" sizes=\"auto, (max-width: 1270px) 100vw, 1270px\" \/><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1278\" height=\"712\" src=\"https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/assignments-priorities-example-response.webp\" alt=\"API JSON response: operation OPERATION_02 is rejected with two probable causes, DEP0042 end of time window exceeded and DEP0060 operation too far from the route\" class=\"wp-image-1169\" srcset=\"https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/assignments-priorities-example-response.webp 1278w, https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/assignments-priorities-example-response-300x167.webp 300w, https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/assignments-priorities-example-response-1024x570.webp 1024w, https:\/\/apioptim.com\/wp-content\/uploads\/2026\/11\/assignments-priorities-example-response-768x428.webp 768w\" sizes=\"auto, (max-width: 1278px) 100vw, 1278px\" \/><\/figure>\n<\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-group alignwide apo-notes is-layout-grid wp-container-core-group-is-layout-0e995563 wp-block-group-is-layout-grid\">\n<p class=\"apo-note has-secondary-color has-text-color has-small-font-size wp-block-paragraph\">Service times are increased to one hour per site and per operation. Given the vehicles\u2019 availability, not all operations fit any more.<\/p>\n\n\n\n<p class=\"apo-note has-secondary-color has-text-color has-small-font-size wp-block-paragraph\">The API schedules what it can and lists operation OPERATION_02 among the unscheduled operations.<\/p>\n\n\n\n<p class=\"apo-note has-secondary-color has-text-color has-small-font-size wp-block-paragraph\">It gives two probable causes: the end of the time window would be exceeded, and the operation is too far from the route to be inserted.<\/p>\n<\/div>\n<\/section>\n\n<section class=\"wp-block-group alignfull apo-dark has-base-color has-main-background-color has-text-color has-background has-link-color wp-elements-4 has-global-padding is-layout-constrained wp-container-core-group-is-layout-6097bdb0 wp-block-group-is-layout-constrained\" style=\"margin-top:0;margin-bottom:0;padding-top:var(--wp--preset--spacing--xx-large);padding-right:var(--wp--preset--spacing--medium);padding-bottom:var(--wp--preset--spacing--xx-large);padding-left:var(--wp--preset--spacing--medium)\">\n<div class=\"wp-block-group alignwide has-global-padding is-content-justification-left is-layout-constrained wp-container-core-group-is-layout-026839e7 wp-block-group-is-layout-constrained\">\n<p class=\"apo-eyebrow wp-block-paragraph\">What the API returns<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What is scheduled, <em>and what is not.<\/em><\/h2>\n\n\n\n<p class=\"has-main-accent-color has-text-color has-base-font-size wp-block-paragraph\">As well as the routes, the solution lists the rejected operations and, where relevant, how some were split. Your software knows what is left to handle and can display it to the planner.<\/p>\n<\/div>\n\n\n\n<figure class=\"wp-block-table alignwide apo-fields\"><table><thead><tr><th>Field<\/th><th>Content<\/th><\/tr><\/thead><tbody><tr><td><code>rejectOperations<\/code><\/td><td>The list of operations the API could not schedule.<\/td><\/tr><tr><td><code>rejectionCauses<\/code><\/td><td>For each unscheduled operation, an unordered list of probable causes, during a global calculation.<\/td><\/tr><tr><td><code>code \u00b7 messageViolation<\/code><\/td><td>For each cause, a code and a message, in the language chosen in the profile (French by default).<\/td><\/tr><tr><td><code>idxSplit<\/code><\/td><td>For a split operation, the index of each of its parts, which keep the identifier of the original operation.<\/td><\/tr><tr><td><code>modifiedData<\/code><\/td><td>The changes made to operations during the calculation, including splitting, with the quantity of each part.<\/td><\/tr><\/tbody><\/table><\/figure>\n<\/section>\n\n<section class=\"wp-block-group alignfull has-main-color has-tertiary-background-color has-text-color has-background has-link-color wp-elements-5 has-global-padding is-layout-constrained wp-container-core-group-is-layout-6097bdb0 wp-block-group-is-layout-constrained\" style=\"margin-top:0;margin-bottom:0;padding-top:var(--wp--preset--spacing--xx-large);padding-right:var(--wp--preset--spacing--medium);padding-bottom:var(--wp--preset--spacing--xx-large);padding-left:var(--wp--preset--spacing--medium)\">\n<div class=\"wp-block-group alignwide has-global-padding is-content-justification-left is-layout-constrained wp-container-core-group-is-layout-fc877c7a wp-block-group-is-layout-constrained\">\n<p class=\"apo-eyebrow wp-block-paragraph\">Good to know<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">A few rules <em>to know before integrating.<\/em><\/h2>\n<\/div>\n\n\n\n<figure class=\"wp-block-table alignwide apo-rules\"><table><thead><tr><th>Rule<\/th><th>What you need to know<\/th><th>Parameters involved<\/th><\/tr><\/thead><tbody><tr><td>Probable causes are only available for global calculation<\/td><td>They are available during a global optimisation, once enabled in the calculation profile, and not for actions on existing routes.<\/td><td><code>COMPUTE_ROUTES<\/code> <code>rejectionCauses<\/code><\/td><\/tr><tr><td>Causes are probable and unordered<\/td><td>The list helps you understand why an operation could not be fitted in. It is not ranked by importance.<\/td><td><code>constraintViolation<\/code><\/td><\/tr><tr><td>An imposed assignment can cause the operation to be rejected<\/td><td>An operation reserved for a vehicle is scheduled on that vehicle, or rejected if inserting it breaks constraints.<\/td><td><code>truckAssignment<\/code><\/td><\/tr><tr><td>Operations are not split by default<\/td><td>Splitting across several routes must be allowed operation by operation.<\/td><td><code>splittable<\/code><\/td><\/tr><tr><td>Grouping favours, it does not impose<\/td><td>A group identifier steers operations towards the same route.<\/td><td><code>idGroup<\/code><\/td><\/tr><tr><td>Optimisation criteria require expertise<\/td><td>How they are set determines the quality of the results. Our experts tell you which criteria to use, and in what order.<\/td><td><code>valorizations<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n<\/section>\n\n<section class=\"wp-block-group alignfull has-main-color has-tertiary-background-color has-text-color has-background has-link-color wp-elements-6 has-global-padding is-layout-constrained wp-container-core-group-is-layout-ef74826b wp-block-group-is-layout-constrained\" style=\"margin-top:0;margin-bottom:0;padding-top:var(--wp--preset--spacing--xx-large);padding-right:var(--wp--preset--spacing--medium);padding-bottom:var(--wp--preset--spacing--xx-large);padding-left:var(--wp--preset--spacing--medium)\">\n<div class=\"wp-block-columns alignwide is-layout-flex wp-container-core-columns-is-layout-eebd7b81 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-container-core-column-is-layout-ad406c26 wp-block-column-is-layout-flow\" style=\"flex-basis:36%\">\n<p class=\"apo-eyebrow wp-block-paragraph\">FAQ<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Your questions about <em>assignments and priorities.<\/em><\/h2>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\" style=\"margin-top:var(--wp--preset--spacing--small)\">\n<div class=\"wp-block-button is-style-outline apo-arrow is-style-outline--2\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/apioptim.com\/en\/contact\/\">Discuss my project<\/a><\/div>\n<\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-container-core-column-is-layout-6c6d749c wp-block-column-is-layout-flow\" style=\"flex-basis:64%\">\n<details class=\"wp-block-details apo-faq is-layout-flow wp-block-details-is-layout-flow\" open><summary>What happens when the fleet is not enough to schedule everything?<\/summary>\n<p class=\"wp-block-paragraph\">The API schedules what it can and lists the rejected operations. With priorities on operations and the appropriate optimisation criterion, the most important ones are scheduled first.<\/p>\n<\/details>\n\n\n\n<details class=\"wp-block-details apo-faq is-layout-flow wp-block-details-is-layout-flow\"><summary>Can I find out why an operation was not scheduled?<\/summary>\n<p class=\"wp-block-paragraph\">Yes, during a global optimisation. For each rejected operation, the API gives probable causes, with a code and a message your software can display.<\/p>\n<\/details>\n\n\n\n<details class=\"wp-block-details apo-faq is-layout-flow wp-block-details-is-layout-flow\"><summary>Can a vehicle be imposed for an order?<\/summary>\n<p class=\"wp-block-paragraph\">Yes. The operation is attached to a vehicle, and to one of its availability periods if needed. It is scheduled on that vehicle, or rejected if that is impossible.<\/p>\n<\/details>\n\n\n\n<details class=\"wp-block-details apo-faq is-layout-flow wp-block-details-is-layout-flow\"><summary>Can certain vehicles be used first?<\/summary>\n<p class=\"wp-block-paragraph\">Yes. Each availability period can be given a usage priority, for example to call on the in-house fleet first.<\/p>\n<\/details>\n\n\n\n<details class=\"wp-block-details apo-faq is-layout-flow wp-block-details-is-layout-flow\"><summary>Can I choose what the optimisation aims to reduce?<\/summary>\n<p class=\"wp-block-paragraph\">Yes, with ordered criteria: number of rejected operations, distance\u2026 They are set with our experts.<\/p>\n<\/details>\n<\/div>\n<\/div>\n<\/section>\n\n<section class=\"wp-block-group alignfull apo-dark has-base-color has-main-background-color has-text-color has-background has-link-color wp-elements-7 has-global-padding is-layout-constrained wp-container-core-group-is-layout-ef74826b wp-block-group-is-layout-constrained\" style=\"margin-top:0;margin-bottom:0;padding-top:var(--wp--preset--spacing--xx-large);padding-right:var(--wp--preset--spacing--medium);padding-bottom:var(--wp--preset--spacing--xx-large);padding-left:var(--wp--preset--spacing--medium)\">\n<div class=\"wp-block-group has-global-padding is-layout-constrained wp-container-core-group-is-layout-b62929bc wp-block-group-is-layout-constrained\">\n<p class=\"has-text-align-center apo-eyebrow wp-block-paragraph\">Take the next step<\/p>\n\n\n\n<h2 class=\"wp-block-heading has-text-align-center\">Test priorities <em>on your customers\u2019 routes.<\/em><\/h2>\n\n\n\n<p class=\"has-text-align-center has-main-accent-color has-text-color has-base-font-size wp-block-paragraph\">Our experts help you translate your customers\u2019 assignment rules and priorities into API parameters.<\/p>\n\n\n\n<div class=\"wp-block-buttons is-content-justification-center is-layout-flex wp-container-core-buttons-is-layout-aeb74038 wp-block-buttons-is-layout-flex\" style=\"margin-top:var(--wp--preset--spacing--medium)\">\n<div class=\"wp-block-button is-style-outline apo-arrow apo-arrow--external is-style-outline--3\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/api-optim.sinari.com\/doc\/mpt\/docs\/mpt\/\" target=\"_blank\" rel=\"noopener\">Read the documentation<\/a><\/div>\n<\/div>\n<\/div>\n<\/section>\n","protected":false},"excerpt":{"rendered":"<p>Features \u203a Assignments, priorities and unscheduled operations Assignments, priorities and unscheduled operations Impose a vehicle or depot on an operation, give priorities to orders and vehicles, and limit the activity of each lorry. When not everything can be scheduled, API Optim lists the rejected operations and their probable causes. What the API handles Your customers\u2019 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"page-no-title","meta":{"wpai_generated_summary":"","footnotes":""},"class_list":["post-1123","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/apioptim.com\/en\/wp-json\/wp\/v2\/pages\/1123","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/apioptim.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/apioptim.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/apioptim.com\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/apioptim.com\/en\/wp-json\/wp\/v2\/comments?post=1123"}],"version-history":[{"count":2,"href":"https:\/\/apioptim.com\/en\/wp-json\/wp\/v2\/pages\/1123\/revisions"}],"predecessor-version":[{"id":1126,"href":"https:\/\/apioptim.com\/en\/wp-json\/wp\/v2\/pages\/1123\/revisions\/1126"}],"wp:attachment":[{"href":"https:\/\/apioptim.com\/en\/wp-json\/wp\/v2\/media?parent=1123"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}