$echo '{
< "old_urls_csv": "url,importance\\r\\nhttps://old.example/a,critical\\r\\nhttps://old.example/c,low\\r\\n",
< "redirects_csv": "source_url,target_url,status_code\\r\\nhttps://old.example/a,https://new.example/b,301\\r\\nhttps://new.example/b,https://old.example/a,301\\r\\n",
< "destinations_csv": "url,status_code\\r\\nhttps://new.example/b,200\\r\\nhttps://old.example/a,200\\r\\n",
< "policy_json": "{\\r\\n \\"schema_version\\": \\"redirect-migration-policy@1\\",\\r\\n \\"allowed_source_hosts\\": [\\r\\n \\"old.example\\",\\r\\n \\"new.example\\"\\r\\n ],\\r\\n \\"allowed_target_hosts\\": [\\r\\n \\"new.example\\",\\r\\n \\"old.example\\"\\r\\n ],\\r\\n \\"required_importance_values\\": [\\r\\n \\"critical\\",\\r\\n \\"high\\"\\r\\n ],\\r\\n \\"accepted_redirect_codes\\": [\\r\\n \\"301\\",\\r\\n \\"302\\",\\r\\n \\"307\\",\\r\\n \\"308\\"\\r\\n ],\\r\\n \\"maximum_hops\\": 5,\\r\\n \\"prefer_permanent_redirects\\": true\\r\\n}\\r\\n"
<}' |
<apify call biztoolsus/redirect-migration-map-preflight --silent --output-dataset