Discussions
Bug Report: Duplicate Shift IDs in "Get Shifts" API Call
I am writing to report an issue I encountered while using the "Get Shifts" API call in Python. While retrieving shifts between 11/25/2024 00 hour, 00 minutes, 00 seconds and 12/1/2024 23 hour, 59 minutes, 00 seconds, I am receiving duplicate shift IDs despite no duplicates existing in the Connecteams platform.
Here are the steps I took:
I used the API call with a 500-row limit and offset to paginate through all records within the specified date range.
I stored the retrieved data in a list using a while loop for pagination.
Upon reviewing the data, I found duplicate shift IDs.
I verified that these duplicate IDs do not exist in the Connecteams platform by manually filtering for them.
To debug, I requested each page of 500 rows individually and merged the results. This confirmed that the duplicate IDs originate from the API response and not my code.
It appears that the "Get Shifts" API call is returning duplicate shift IDs when paginating through results with a row limit.
Can you please help?
Thank you,
Hussein