$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "currentItems": [
< {
< "id": "a1",
< "company": "Acme",
< "technology": "Python",
< "mentions": 24
< },
< {
< "id": "a2",
< "company": "Acme",
< "technology": "Rust",
< "mentions": 12
< },
< {
< "id": "b1",
< "company": "Beta",
< "technology": "Java",
< "mentions": 9
< }
< ],
< "previousItems": [
< {
< "id": "a1",
< "company": "Acme",
< "technology": "Python",
< "mentions": 15
< },
< {
< "id": "a2",
< "company": "Acme",
< "technology": "Rust",
< "mentions": 2
< },
< {
< "id": "b1",
< "company": "Beta",
< "technology": "Java",
< "mentions": 11
< }
< ]
<}
<EOF
$curl "https://api.apify.com/v2/actors/quanmatrix~job-tech-stack-change-intelligence/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'