Discussions
Max date range in GET Shifts endpoint?
almost 3 years ago by [email protected](edited)
I'm trying to do a full refresh of my shift data, so I want to pull down data from all time (or at least one year). There seems to be some undocumented limit on how many days' worth of data can be queried from the /v2/shifts endpoint before the server returns a 500 status error.
What is the limit on the start_date
/end_date
parameters and what is the recommended way to get a year's worth of data from the shifts endpoint? If I can't do it in a single API call, is there a way to paginate the results?
Edit: I just tried a few things and it looks like for certain months I can get the whole month (31 days) but other months (like December 2021) I can only get a 29 day range before receiving a 500 error.