Importing visual artifacts with REST APIs
POST
request that imports dashboards with IDs 2115 and 2110, which were
earlier saved (from a metadata perspective) as my_app.json. This file is
uploaded to the Cloudera Data Visualization server during the
import.import requests headers = {'AUTHORIZATION':'apikey secret_api_key'} payload = {'dry_run': False, "dataconnection_name":"data_connection"} files = {'import_file': open('/Users/my_name/Downloads/my_app.json','r')} r = requests.post('destination_arcviz_ip/arc/migration/api/import/',files=files, data=payload, headers=headers) print r.status_code # 200 is success