Method to Retrieve OD Version

For requests or help with our API
Post Reply
graham_mueller
Posts: 42
Joined: Fri Jan 19, 2024 10:57 am

Method to Retrieve OD Version

Post by graham_mueller » Mon Dec 02, 2024 6:16 pm

Hello all, as mentioned in a previous thread, I've reached the point where some of my clients have migrated to version 24 while some remain on version 23, breaking my queries. Given there is no halfway step, I need to maintain two separate queries based on which version clients are running, but I don't see an obvious way to determine that programmatically. I thought there might be an API for such a thing, it could be included in that "status" endpoint request, if that's on the near horizon, or perhaps via a request header, etc? I also don't see a good candidate table in the db, so I can't fetch it via ShortQuery either. Any suggestions?

graham_mueller
Posts: 42
Joined: Fri Jan 19, 2024 10:57 am

Re: Method to Retrieve OD Version

Post by graham_mueller » Mon Dec 02, 2024 6:57 pm

Ah, it looks like there's a "preference" for this based on this thread. I'll use that for now, although including it in the status endpoint could still be useful.

justine
Posts: 240
Joined: Tue Dec 28, 2021 7:59 am

Re: Method to Retrieve OD Version

Post by justine » Tue Dec 03, 2024 8:56 am

graham_mueller wrote:
Mon Dec 02, 2024 6:16 pm
Hello all, as mentioned in a previous thread, I've reached the point where some of my clients have migrated to version 24 while some remain on version 23, breaking my queries. Given there is no halfway step, I need to maintain two separate queries based on which version clients are running, but I don't see an obvious way to determine that programmatically. I thought there might be an API for such a thing, it could be included in that "status" endpoint request, if that's on the near horizon, or perhaps via a request header, etc? I also don't see a good candidate table in the db, so I can't fetch it via ShortQuery either. Any suggestions?
graham_mueller wrote:
Mon Dec 02, 2024 6:57 pm
Ah, it looks like there's a "preference" for this based on this thread. I'll use that for now, although including it in the status endpoint could still be useful.
Good morning graham_mueller,

You are correct, using the API and calling the preferences endpoint is how to determine the version. Additionally, OD version can be found in the developer portal.

Thanks!

Post Reply