Thank you for the prompt response and confirmation regarding retrieving deleted patients using the PUT ShortQuery API.
We now have another query:
We attempted to delete appointment records using the PUT ShortQuery API with the following query:
Code: Select all
{
"SqlCommand": "DELETE FROM appointment WHERE AptNum = [AppointmentId]"
}
However, we encountered the following error:
Code: Select all
"Query command must either be read-only or execute on a temporary table."
Since there is no direct DELETE API available for patients or appointments, we would like to know:
What is the recommended approach to delete patient or appointment records using Open Dental’s API?
Is there any alternative method or workaround to perform deletions?
We would greatly appreciate any guidance on how to handle deletions through the API.