POST
Customer.Appointments.Edit
Update one doctor_appointment_for_cust row owned by the logged-in customer. Same fields as Customer.Appointments.Add plus id. Matches the client modal Save after edit_doctor_appointment_for_cust. Cannot edit another customer's booking. Rejects canceled rows.
Permissions
- User must be logged in with a valid bearer token.
- Returned or changed records are limited by the user permissions, team access, folder access, and account settings.
Action
- Runs the Customer.Appointments.Edit function and returns JSON.
Push Service
No push is sent because this function only reads data or returns helper information.
Automation
No automation is run for this function.
Special Instructions
- Does not change staff Calendar.Edit.
- id aliases: data_id, appointment_id, doctor_appointment_for_cust_id.
Required Parameters
| Name | Type | Sample | Explanation |
|---|---|---|---|
idpost | int | 901 | doctor_appointment_for_cust.id. Aliases: data_id, appointment_id, doctor_appointment_for_cust_id. |
Optional Parameters
| Name | Type | Sample | What it gives |
|---|---|---|---|
doctor_idpost | int | 211 | Team member id. Defaults to the saved row. |
appointments_type_data_idpost | int | 8 | Appointment type id. Defaults to the saved row. |
start_timepost | string | 09:00 | Start time H:i. |
end_timepost | string | 09:30 | End time H:i. |
datepost | date | 2026-08-14 | Appointment date. Send date filters and date values as UTC Y-m-d H:i:s when the route accepts date/time; date-only table columns store the Y-m-d date part. |
patient_namepost | string | Jane | Patient name. |
notespost | string | 0500000000 | Contact info. |
subjectpost | string | Checkup | Subject. |
Authentication
Send the bearer token returned by Login in the request header.
Authorization: Bearer YOUR TOKEN
Sample Request
{
"url": "\/app\/Customer.Appointments.Edit",
"method": "POST",
"headers": {
"Authorization": "Bearer YOUR TOKEN"
},
"body": {
"id": "901",
"start_time": "09:00",
"end_time": "09:30",
"date": "2026-08-14"
},
"url_user": "https:\/\/{user}.bull36.com\/app\/Customer.Appointments.Edit",
"url_domain": "https:\/\/{domain}\/app\/Customer.Appointments.Edit"
}Endpoint
POST /app/Customer.Appointments.Edit
POST https://{user}.bull36.com/app/Customer.Appointments.Edit
POST https://{domain}/app/Customer.Appointments.EditSample Output
{
"success": 1,
"id": 901,
"message": "Success"
}JavaScript Example
const token = 'YOUR TOKEN';
const body = new URLSearchParams();
body.set('id', '901');
body.set('start_time', '09:00');
body.set('end_time', '09:30');
body.set('date', '2026-08-14');
const res = await fetch('/app/Customer.Appointments.Edit', {
method: 'POST',
headers: { Authorization: `Bearer ${token}` },
body
});
const data = await res.json();
console.log(data);Error Example
{
"success": 0,
"message": "This appointment is cancled"
}