$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "reviews": [
< {
< "userId": "R1",
< "date": "2026-03-02",
< "ratingScore": 2,
< "reviewDescription": "The left earbud stopped charging after about four months. Case shows it at 100% but it is dead."
< },
< {
< "userId": "R2",
< "date": "2026-03-19",
< "ratingScore": 1,
< "reviewDescription": "Left bud stopped charging completely around month five. Right one is fine."
< },
< {
< "userId": "R3",
< "date": "2026-04-07",
< "ratingScore": 2,
< "reviewDescription": "Battery died on the left earbud after four months of light use. Very disappointing."
< },
< {
< "userId": "R4",
< "date": "2026-02-11",
< "ratingScore": 1,
< "reviewDescription": "Case hinge snapped in my pocket within a few weeks. The plastic is far too thin."
< },
< {
< "userId": "R5",
< "date": "2026-05-02",
< "ratingScore": 2,
< "reviewDescription": "The hinge on the charging case broke after about three weeks of normal use."
< },
< {
< "userId": "R6",
< "date": "2026-05-14",
< "ratingScore": 1,
< "reviewDescription": "Hinge cracked and now the case will not stay shut at all."
< },
< {
< "userId": "R7",
< "date": "2026-01-30",
< "ratingScore": 3,
< "reviewDescription": "Did not like the colour, it is more grey than silver in person."
< }
< ],
< "productName": "Wireless Earbuds (example)",
< "linkUrl": "https://www.amazon.com/dp/B08EXAMPLE"
<}
<EOF
$curl "https://api.apify.com/v2/actors/pradio~amazon-defect-ledger/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'