$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "currentItems": [
< {
< "id": "c1",
< "title": "Employer Alpha",
< "rating": 2.8,
< "negativePct": 66,
< "turnoverMentionRate": 58,
< "managementIssueRate": 63,
< "salaryGapPct": 24,
< "reviewCount": 4600
< },
< {
< "id": "c2",
< "title": "Employer Beta",
< "rating": 4.2,
< "negativePct": 18,
< "turnoverMentionRate": 12,
< "managementIssueRate": 17,
< "salaryGapPct": 6,
< "reviewCount": 3100
< }
< ],
< "previousItems": [
< {
< "id": "c1",
< "title": "Employer Alpha",
< "rating": 3.4,
< "negativePct": 48,
< "turnoverMentionRate": 39,
< "managementIssueRate": 44,
< "salaryGapPct": 18,
< "reviewCount": 3900
< }
< ]
<}
<EOF
$curl "https://api.apify.com/v2/actors/quanmatrix~glassdoor-employer-retention-risk-intelligence/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'