Automate dashboard creation via REST API Follow
Hello guys,
Do anyone come cross api that would help to create new dashboard with widgets from existing dashboard or clone a exiting dashboard with its widgets?
We are creating dashboad per release and we create dashboard then clone the widgets to the new dashboard, it is many manual steps and it is a pain.
Any ideas?
Thanks
Please sign in to leave a comment.
Hello Fayez,
here you can find the API for dashboards: https://www.jetbrains.com/help/hub/HUB-REST-API_Dashboards.html
The widgets are located in the `data` field: https://www.jetbrains.com/help/hub/HUB-REST-API_Dashboards_Create-New-Dashboard.html
Unfortunately, the part of the API concerning widgets is not documented yet, so I can suggest making some requests with the developer tools of your browser open and then imitate the same requests in your code.
Let us know if you need assistance, we'll be happy to help.