GitHub user illaaa added a comment to the discussion: Import dashboard with overwriting all related objects (charts and datasets)
For those who come looking for a solution — I wasn't able to import a dashboard along with all its dependent objects using the /dashboard/import/ endpoint. Also, according to the API documentation, there is no such endpoint as /import/; instead, there is /assets/import/. I couldn’t get it to work via /assets/import/, but maybe I missed something. As an alternative solution, I import the objects sequentially: database → dataset → chart → dashboard, using their corresponding endpoints (_/database/import/_, _/dataset/import/_, _/chart/import/_, _/dashboard/import/_). One important detail here is that each import package must contain only its respective lower-level objects and nothing else. Additionally, the type attribute in the required metadata.yaml file must differ for each package. As an example, here's the dictionary I used: (import_package_name, required_folders, import_package_type):  @katmolony FYI GitHub link: https://github.com/apache/superset/discussions/31306#discussioncomment-12628245 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
