$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "accountId": "000123",
< "queries": [
< {
< "id": "q001",
< "query": "blue running shoes",
< "campaignId": "01",
< "adGroupId": "001"
< },
< {
< "id": "q002",
< "query": "running shoes",
< "campaignId": "01",
< "adGroupId": "001"
< },
< {
< "id": "q003",
< "query": "shoes running",
< "campaignId": "02",
< "adGroupId": "002"
< },
< {
< "id": "q004",
< "query": "sidewalk CAFÉ",
< "campaignId": "02",
< "adGroupId": "002"
< },
< {
< "id": "q005",
< "query": "sidewalk cafe",
< "campaignId": "02",
< "adGroupId": "002"
< },
< {
< "id": "q006",
< "query": "free training",
< "campaignId": "03",
< "adGroupId": "003"
< },
< {
< "id": "q007",
< "query": "ski boots",
< "campaignId": "01",
< "adGroupId": "001"
< },
< {
< "id": "q008",
< "query": "shose",
< "campaignId": "01",
< "adGroupId": "001"
< },
< {
< "id": "q009",
< "query": "socks & shoes",
< "campaignId": "01",
< "adGroupId": "001"
< },
< {
< "id": "q010",
< "query": "very very cheap",
< "campaignId": "01",
< "adGroupId": "001"
< }
< ],
< "negatives": [
< {
< "id": "n001",
< "text": "running shoes",
< "matchType": "broad",
< "scope": "account"
< },
< {
< "id": "n002",
< "text": "running shoes",
< "matchType": "phrase",
< "scope": "campaign",
< "campaignId": "01"
< },
< {
< "id": "n003",
< "text": "running shoes",
< "matchType": "exact",
< "scope": "adGroup",
< "campaignId": "01",
< "adGroupId": "001"
< },
< {
< "id": "n004",
< "text": "sidewalk café",
< "matchType": "phrase",
< "scope": "campaign",
< "campaignId": "02"
< },
< {
< "id": "n005",
< "text": "free",
< "matchType": "broad",
< "scope": "sharedList",
< "listId": "L01"
< },
< {
< "id": "n006",
< "text": "boots",
< "matchType": "broad",
< "scope": "campaign",
< "campaignId": "99"
< },
< {
< "id": "n007",
< "text": "shoes*",
< "matchType": "broad",
< "scope": "campaign",
< "campaignId": "01"
< },
< {
< "id": "n008",
< "text": "shoes",
< "matchType": "broad",
< "scope": "unknown"
< },
< {
< "id": "n009",
< "text": "socks & shoes",
< "matchType": "exact",
< "scope": "account"
< },
< {
< "id": "n010",
< "text": "very very",
< "matchType": "phrase",
< "scope": "campaign",
< "campaignId": "01"
< }
< ],
< "sharedListAttachments": [
< {
< "listId": "L01",
< "campaignId": "03"
< }
< ]
<}
<EOF
$curl "https://api.apify.com/v2/actors/h_murdock~negative-keyword-preflight/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'