I just took over a Quicksight account. I have some dashboards published and some analyses. I want to edit one of the dashboards and remove a specific sheet. I try to do it with boto3 Python API since I can’t do it from UI (no option). Through the describe_dashboard function I notice that the SourceEntity of the dashboard is a template. I searched that a template is something related to metadata that could not exactly understand (so far, what I know is that a dashboard is derived from a specific analyses).
Can someone guide me on how to apply this change to the published dashboard? I have all ARN’s of the datasets, templates and dashboards
Hi @Fotis_flex - Welcome to AWS QuickSight community and thanks for posting the question. Ideally you can not change any published dashboard. You have to go to back to analysis and then remove the tabs and republish it. I never tried to do it in Boto3 API but there should be a way to republish the dashboard with changes.
Hi @Sanjeeb2022 and thanks for the reply. I have some difficulty doing it from the UI of Quicksight. First, I am not sure which is the source of the dashboard, from boto3 I receive that the source is a template and not an analysis? I am confused with what is the difference. Then, when I locate an analysis that looks the same as the dashboard, when I try to republish it to an existing dashboard, the option is greyed out so I cannot! Please note that I am the owner! In the end, I still don’t know how to edit a dahboard which I think it should be a little more intuitive. Any more ideas?
You can save a new analysis from the dashboard, make changes to it and then publish a new dashboard. When you publish, you won’t see the option to replace the original.
If you really need to replace the original dashboard instead of creating a new one, I think there may be a way with the API but I haven’t tried it myself.
After you save the new analysis from the original dashboard, use it to create a template by specifying it as the source analysis in the request body.
Then use the UpdateDashboard operation to update the original dashboard by using the template you created.
Hallo @David_Wong and many thanks for coming back. I do exactly as you say by using the API with the difference that I create a new dashboard from the template. Then, in Quicksight GUI I can see that the new dashboard exists under “Manage assets” but when I go to the Dashboards tab, my dashboard is not listed and cannot view the result! It seems strange to me
If creating a new dashboard instead of updating the original one is acceptable, you actually don’t need to use the API. Once you have updated the analysis, you can use the UI to publish a new dashboard.
If you use the API, you have to use UpdateDashboardPermissions to set the correct permissions.
@Koushik_Muthanna Where in the documentation can I see the list of permissions and what each permission means? The only way I was able to figure out the correct permissions is by using DescribeDashboardPermissions on an existing dashboard that I own.
This is available as you have written by running the describe dashboard permissions. I think we should look at including it in our documentation as well.
Ok guys thanks for help. Yes I know I can publish it from GUI, just need to do it programmatically. Hopefully updating the permissions will help. I will try and come back!