$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "dashboardStatisticsFrequency": "Every day at noon",
< "validationCheckOptions": "/* global ow */\n// The `ow` variable represents the ow validation variable. More at https://sindresorhus.com/ow/index.html\n [\n {\n filter: \"us\", // matches all targets with \"us\" pattern\n minItemCount: 5000,\n schema: {\n url: ow.string.url,\n description: ow.string,\n },\n },\n {\n Ids: [\"A1b2C3d4\", \"B1A2d45\"], // matches 2 targets with specific IDs\n schema: {\n itemId: ow.number,\n region: ow.string,\n },\n },\n]",
< "validationCheckFrequency": "Per run",
< "duplicationCheckFrequency": "Per run"
<}
<EOF
$curl "https://api.apify.com/v2/acts/apify~monitoring/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'