put https://api.xandar.instaleap.io/jobs//reschedule
Allow your systems to reschedule an already created job by changing its delivery window.
This endpoint allows rescheduling the delivery time of an existing job. It's used when the customer or the system needs to change the delivery window, either due to customer request, delivery delays, or operational adjustments.
To perform the reschedule, the job must already exist and be identified by its job_id
.
🔄 Use Cases
-
With capacity validation:
Use the availability endpoint to get a list of available delivery slots and select one using the returnedslot_id
. -
Without capacity validation:
Directly provide a newfrom
andto
timestamp to set a new delivery window manually.
🧾 Request Body Examples
{
"slot_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"reason": "Customer changed preferred delivery time",
"metadata": {
"rescheduled_by": "customer_support_agent"
}
}
{
"from": "2024-09-30T16:36:37.982Z",
"to": "2024-09-30T17:36:37.982Z",
"reason": "Customer not available at original time",
"metadata": {
"rescheduled_by": "system_auto_adjustment"
}
}
Response Codes
200 OK
— Job rescheduled successfully400 Bad Request
— Invalidslot_id
or missing required fields404 Not Found
— Job ID not found in the system422 Unprocessable Entity
— The provided dates or slot are not valid500 Internal Server Error
— Unexpected system error