I found these very similar requests (no response) from 2 and 3 years ago(apologies for not including the actual links, I’m not allowed to do that yet):
27886
23761
16037
I am hopeful that this indicates that I missed something trivial, that would be typical.
Hi Andreas,
My goal is to use the API to get the JSON representation of a dashboard, including __inputs and named datasources.
Interestingly, in 8.3.x I see that using the web interface to export any dashboard with “Export for sharing externally” set to true generates only the following JSON:{“error”:{}}. This is certainly a separate issue.
Best regards,
Jeremy
HTTP API for dashboard export for external use doesn’t exist. This export feature is implemented in the UI (frontend). I would say the only option is to use standard dashboard API and make that output transformed into “dashboard format for external use”. Unfortunately, that format is not documented, so you have to use reverse engineering.
Hi Jan!
I think the HTTP API is the same as the standard dashboard api, or at least we’re both linking to the same page. I don’t see how the datasource information is available from the API. By “use reverse engineering”, are you suggesting a selenium-like script, or something better that I’m missing?
While I have nothing significant to contribute now, I still want to reference the corresponding place in the code base, where this JSON representation is generated. It is DashboardExporter.ts.
Thanks very much! This takes us a big step closer to a solution.
Just to confirm what I think you and @jangaraj are saying: DashboardExporter takes a DashboardModel which is constructed based solely on the output of the http api. Is this correct?