How to duplicate Visualization changing source index pattern and name

I have multiple logs from production, qa and staging environments. They are stored in separate indexes. I want to create several visualizations/dashboards for all environments: create for dev env, test and duplicate for other indexes. I can export but if I change name in ndjson file to new one and import back - it will override old one. For some reason I can’t change log source from GUI. Is it possible to import all visualizations at once?