Reschedule booking
curl --request PUT \
--url https://v2.flabs.in/client/crm/booking/{leadId}/reschedule \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"newDate": "2026-11-28",
"newTime": "10:00",
"reason": "Patient requested"
}
'import requests
url = "https://v2.flabs.in/client/crm/booking/{leadId}/reschedule"
payload = {
"newDate": "2026-11-28",
"newTime": "10:00",
"reason": "Patient requested"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({newDate: '2026-11-28', newTime: '10:00', reason: 'Patient requested'})
};
fetch('https://v2.flabs.in/client/crm/booking/{leadId}/reschedule', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://v2.flabs.in/client/crm/booking/{leadId}/reschedule",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'newDate' => '2026-11-28',
'newTime' => '10:00',
'reason' => 'Patient requested'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}HttpResponse<String> response = Unirest.put("https://v2.flabs.in/client/crm/booking/{leadId}/reschedule")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"newDate\": \"2026-11-28\",\n \"newTime\": \"10:00\",\n \"reason\": \"Patient requested\"\n}")
.asString();using RestSharp;
var options = new RestClientOptions("https://v2.flabs.in/client/crm/booking/{leadId}/reschedule");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
request.AddJsonBody("{\n \"newDate\": \"2026-11-28\",\n \"newTime\": \"10:00\",\n \"reason\": \"Patient requested\"\n}", false);
var response = await client.PutAsync(request);
Console.WriteLine("{0}", response.Content);
{
"success": true,
"leadId": "6530a4a6f1d2c8b7e9a54321",
"bookingStatus": "Rescheduled",
"scheduledAt": "2026-11-28T04:30:00.000Z"
}{
"success": false,
"status": 400,
"message": "Bad Request",
"error": {
"details": "first_name is required"
}
}{
"success": false,
"status": 500,
"message": "Internal Server Error",
"error": {
"details": "An unexpected error occurred"
}
}Bookings
Reschedule Booking
Moves a booking you created to a new date and time, exactly as the lab’s CRM does. Its status becomes Rescheduled, and the change, reason and source (“Client API”) appear in the booking’s history.
- When: any day from today (IST), including a time earlier today. A
CompletedorCancelledbooking cannot be moved. - Assigned phlebotomist: stays on the booking and is notified of the new time. The call fails with
409when the new time is outside their shift, on a day they are on leave, or clashes with another of their visits. Check Get Slots with the newdateandtimefirst, or send the same request again withignoreConflict: trueto reschedule anyway (the CRM’s “Reschedule anyway”). - No phlebotomist assigned: only the date rules above apply.
Errors (the reason is in error.details):
400:newDate,newTimeorreasonmissing or invalid;newDatebefore today; or the booking is completed or cancelled.404: no such booking, or it is not one you created through this API.409: the phlebotomist is not free at the new time, or the booking was cancelled or completed while your request was in flight.
Fires booking.rescheduled to your webhook.
PUT
/
client
/
crm
/
booking
/
{leadId}
/
reschedule
Reschedule booking
curl --request PUT \
--url https://v2.flabs.in/client/crm/booking/{leadId}/reschedule \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"newDate": "2026-11-28",
"newTime": "10:00",
"reason": "Patient requested"
}
'import requests
url = "https://v2.flabs.in/client/crm/booking/{leadId}/reschedule"
payload = {
"newDate": "2026-11-28",
"newTime": "10:00",
"reason": "Patient requested"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({newDate: '2026-11-28', newTime: '10:00', reason: 'Patient requested'})
};
fetch('https://v2.flabs.in/client/crm/booking/{leadId}/reschedule', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://v2.flabs.in/client/crm/booking/{leadId}/reschedule",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'newDate' => '2026-11-28',
'newTime' => '10:00',
'reason' => 'Patient requested'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}HttpResponse<String> response = Unirest.put("https://v2.flabs.in/client/crm/booking/{leadId}/reschedule")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"newDate\": \"2026-11-28\",\n \"newTime\": \"10:00\",\n \"reason\": \"Patient requested\"\n}")
.asString();using RestSharp;
var options = new RestClientOptions("https://v2.flabs.in/client/crm/booking/{leadId}/reschedule");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
request.AddJsonBody("{\n \"newDate\": \"2026-11-28\",\n \"newTime\": \"10:00\",\n \"reason\": \"Patient requested\"\n}", false);
var response = await client.PutAsync(request);
Console.WriteLine("{0}", response.Content);
{
"success": true,
"leadId": "6530a4a6f1d2c8b7e9a54321",
"bookingStatus": "Rescheduled",
"scheduledAt": "2026-11-28T04:30:00.000Z"
}{
"success": false,
"status": 400,
"message": "Bad Request",
"error": {
"details": "first_name is required"
}
}{
"success": false,
"status": 500,
"message": "Internal Server Error",
"error": {
"details": "An unexpected error occurred"
}
}Path Parameters
The leadId returned by Create Lead or Booking.
Body
application/json
Was this page helpful?