$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "currentItems": [
< {
< "id": "c1",
< "issuer": "Acme Corp",
< "agency": "Agency A",
< "rating": "BBB-",
< "action": "downgrade",
< "ratingScore": 6
< },
< {
< "id": "c2",
< "issuer": "Acme Corp",
< "agency": "Agency B",
< "rating": "BBB",
< "outlook": "negative",
< "ratingScore": 7
< },
< {
< "id": "c3",
< "issuer": "Beta Corp",
< "agency": "Agency A",
< "rating": "A",
< "ratingScore": 9
< }
< ],
< "previousItems": [
< {
< "id": "c1",
< "issuer": "Acme Corp",
< "agency": "Agency A",
< "rating": "BBB",
< "action": "affirm",
< "ratingScore": 7
< },
< {
< "id": "c2",
< "issuer": "Acme Corp",
< "agency": "Agency B",
< "rating": "BBB",
< "outlook": "stable",
< "ratingScore": 7
< },
< {
< "id": "c3",
< "issuer": "Beta Corp",
< "agency": "Agency A",
< "rating": "A",
< "ratingScore": 9
< }
< ]
<}
<EOF
$curl "https://api.apify.com/v2/actors/quanmatrix~credit-rating-action-drift-intelligence/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'