$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "currentItems": [
< {
< "id": "m1",
< "metro": "Austin",
< "occupation": "AI Engineer",
< "openings": 35
< },
< {
< "id": "m2",
< "metro": "Austin",
< "occupation": "Data Engineer",
< "openings": 20
< },
< {
< "id": "m3",
< "metro": "Boston",
< "occupation": "AI Engineer",
< "openings": 14
< }
< ],
< "previousItems": [
< {
< "id": "m1",
< "metro": "Austin",
< "occupation": "AI Engineer",
< "openings": 18
< },
< {
< "id": "m2",
< "metro": "Austin",
< "occupation": "Data Engineer",
< "openings": 12
< },
< {
< "id": "m3",
< "metro": "Boston",
< "occupation": "AI Engineer",
< "openings": 13
< }
< ]
<}
<EOF
$curl "https://api.apify.com/v2/actors/quanmatrix~metro-occupation-demand-intelligence/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'