Skip to main content
Solved

API treatment_plans endpoint parameters not working

  • October 10, 2024
  • 2 replies
  • 150 views

Forum|alt.badge.img+2

Hi all, i'm trying to read treatment plans that were created between january 1 and january 4. Per the API documentation i call the endpoint like so:

https://api.dentally.co/v1/treatment_plans?created_after=2024-01-01&created_before=2024-01-04

 

However, this returns all treatment plans. The first record returned has a created_at value of 2024-10-10 (today). No matter what dates i enter for created_after and created_before, it always gives me the same response. Am i doing something wrong here? Or is there a bug in the Dentally API?

Best answer by Phil Muldoon

Hello @enzolima!

I looked into this and it seems you have found a bug! I’ve fixed this now, and the created_before and created_after filters should now work as expected. Any further problems, do let us know!  Apologies for the buglet, and many thanks for reporting it.

Cheers,

Phil
Dentally Engineering Staff

This topic has been closed for replies.

2 replies

Phil Muldoon
Dentally Team
Forum|alt.badge.img+1
  • Dentally Team
  • Answer
  • October 10, 2024

Hello @enzolima!

I looked into this and it seems you have found a bug! I’ve fixed this now, and the created_before and created_after filters should now work as expected. Any further problems, do let us know!  Apologies for the buglet, and many thanks for reporting it.

Cheers,

Phil
Dentally Engineering Staff


Forum|alt.badge.img+2
  • Author
  • Enthusiast
  • November 7, 2024

Thanks Phil! Works like a charm again :)