PUT request
Use this endpoint to add new tasks or change the order of existing tasks within a route plan by providing a new array of task IDs.
In order to remove a task from a route plan, utilize the PUT method with the container endpoint to assign that task to a new container.
URL: https://onfleet.com/api/v2/routePlans/:routePlanId/tasks
{
"tasks":[
"Qur4QbKBP1MgpRGCAMIQ~rho",
"p3UHDHUk7BMAanM6HsK*Dg*x",
"178IyAxfAh8bzzpgWZbMMJYJ",
"T615F6M~HlOx9qNJQnD2*JJo"
]
}
Current Usage
This endpoint enables task(s) addition. However, this endpoint will require you to keep a list of the tasks you already have in the route plan in addtion to the task(s) you are to add.
For Example, if the original task array contains Task A, B and C, and you want to add D to the route plan; the tasks array you are to provide will have to be: [A, B, C, D] instead of just [D]. Otherwise, you run the risks of removing A, B, and C from the route plan.