Replies: 3 comments 2 replies
-
|
Update: I was able to find the latest historyKey through the /api/pubHistory endpoint, but this doesn't seem to be documented at all. It's not listed in the API Docs and I was only able to find it by poking through the source code and seeing how the front end knows which version to export. If there's a better way to do this please let me know, but it seems like there's some discrepancies between the codebase and documentation right now. |
Beta Was this translation helpful? Give feedback.
-
|
It sounds like you’re encountering an issue with the /api/export endpoint not defaulting to the latest historyKey. This could be a bug. Here are a few steps to troubleshoot: Check API Documentation: Make sure you're following the latest version of the API documentation for any updates or changes. |
Beta Was this translation helpful? Give feedback.
-
|
Did any solution work? @lukvmil |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Not sure if this is a bug, but using the /api/export endpoint, historyKey does not default to the latest version like it says, but instead returns the first version which is a blank document. Manually setting to -1 also does not work, and the only solution I have right now is setting it to an arbitrary large number which doesn't seem ideal. The API also doesn't seem to return the latest historyKey anywhere else. The documentation says it's supposed to be return from the /api/pubs endpoint, but all of the pubs are missing this key when I make this call. Help would be appreciated!
Beta Was this translation helpful? Give feedback.
All reactions