$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "reviews": [
< {
< "title": "Example Bakery",
< "placeId": "example-1",
< "stars": 2,
< "text": "Waited 25 minutes for two croissants and nobody apologised. The bread is good, but the service on Saturday morning is chaos.",
< "publishedAtDate": "2026-10-20T09:12:00Z",
< "reviewId": "demo-1"
< },
< {
< "title": "Example Bakery",
< "placeId": "example-1",
< "stars": 5,
< "text": "Best sourdough in town and the staff remembered my order.",
< "publishedAtDate": "2026-10-21T08:30:00Z",
< "reviewId": "demo-2"
< },
< {
< "title": "Example Bakery",
< "placeId": "example-1",
< "stars": 1,
< "text": "Bestelde een taart voor zaterdag, bij het afhalen was ze er niet. Geen excuses, geen oplossing.",
< "publishedAtDate": "2026-10-22T15:40:00Z",
< "reviewId": "demo-3"
< }
< ]
<}
<EOF
$curl "https://api.apify.com/v2/actors/olliolli~review-digest/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'