$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "redirectMap": "[\n {\n \"label\": \"W3C homepage HTTP to HTTPS\",\n \"source\": \"http://www.w3.org/\",\n \"destination\": \"https://www.w3.org/\",\n \"status\": 200,\n \"maxHops\": 3,\n \"titleContains\": \"W3C\",\n \"noindex\": false,\n \"forbidSoft404\": true\n },\n {\n \"label\": \"IANA example-domains guide\",\n \"source\": \"https://www.iana.org/help/example-domains\",\n \"destination\": \"https://www.iana.org/help/example-domains\",\n \"status\": 200,\n \"maxHops\": 2,\n \"titleContains\": \"Example Domains\",\n \"h1Contains\": \"Example Domains\",\n \"noindex\": false,\n \"forbidSoft404\": true\n },\n {\n \"label\": \"Missing purchase CTA\",\n \"source\": \"https://www.iana.org/help/example-domains\",\n \"destination\": \"https://www.iana.org/help/example-domains\",\n \"status\": 200,\n \"titleContains\": \"Example Domains\",\n \"requiredText\": \"Add to cart\"\n },\n {\n \"label\": \"Old path collapsed to homepage\",\n \"source\": \"https://httpbin.org/redirect-to?url=https://www.w3.org/&status_code=301\",\n \"destination\": \"https://www.w3.org/TR/webarch/\",\n \"status\": 200,\n \"maxHops\": 5\n },\n {\n \"label\": \"Redirect chain over hop budget\",\n \"source\": \"https://httpbin.org/redirect/2\",\n \"destination\": \"https://httpbin.org/get\",\n \"status\": 200,\n \"maxHops\": 1\n },\n {\n \"label\": \"German market expected\",\n \"source\": \"https://www.iana.org/help/example-domains\",\n \"status\": 200,\n \"region\": \"de\",\n \"hreflang\": \"de-DE\"\n }\n]",
< "patternAssertions": [
< {
< "pattern": "https://www.iana.org/help/*",
< "forbidSoft404": true,
< "noindex": false
< }
< ],
< "monitorId": "sample"
<}
<EOF
$curl "https://api.apify.com/v2/actors/plusonets~site-migration-regression-auditor/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'