API query error message
-
- Posts: 113
- Joined: Wed Mar 15, 2023 8:43 am
API query error message
Under API query, I am getting an error saying 'Unauthorized' if I run Dentist KPI (QR41564) query in my local machine. We tried but has not worked for us. See attached error message. Please help and let me know the issue.
Re: API query error message
I would double check your syntax and variable naming. Did you try to run this query in the User Query window of Open Dental?
I was able to run this query with the Public Demo dental office credentials without issue.
I was able to run this query with the Public Demo dental office credentials without issue.
-
- Posts: 113
- Joined: Wed Mar 15, 2023 8:43 am
Re: API query error message
That query is working fine if I run it in User Query window of Open Dental, but if I try running it in PUT ShortQuery method API then it is giving unauthorized as error.
Re: API query error message
Good morning beacondental,beacondental wrote: ↑Tue Jun 27, 2023 6:56 amThat query is working fine if I run it in User Query window of Open Dental, but if I try running it in PUT ShortQuery method API then it is giving unauthorized as error.
Depending on how you are sending your API request, the application/program/client may have trouble parsing double quotes contained within the query itself.
Try replacing any (") with (') in your query.
-
- Posts: 113
- Joined: Wed Mar 15, 2023 8:43 am
Re: API query error message
Dear Team,justine wrote: ↑Tue Jun 27, 2023 9:48 amGood morning beacondental,beacondental wrote: ↑Tue Jun 27, 2023 6:56 amThat query is working fine if I run it in User Query window of Open Dental, but if I try running it in PUT ShortQuery method API then it is giving unauthorized as error.
Depending on how you are sending your API request, the application/program/client may have trouble parsing double quotes contained within the query itself.
Try replacing any (") with (') in your query.
Thank you for your support, I replaced (") with (') and it is working fine now