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

NameTypeSampleExplanation
id
post
int901doctor_appointment_for_cust.id. Aliases: data_id, appointment_id, doctor_appointment_for_cust_id.

Optional Parameters

NameTypeSampleWhat it gives
doctor_id
post
int211Team member id. Defaults to the saved row.
appointments_type_data_id
post
int8Appointment type id. Defaults to the saved row.
start_time
post
string09:00Start time H:i.
end_time
post
string09:30End time H:i.
date
post
date2026-08-14Appointment 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_name
post
stringJanePatient name.
notes
post
string0500000000Contact info.
subject
post
stringCheckupSubject.

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.Edit

Sample 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"
}