$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "events": [
< {
< "id": "sample-1",
< "title": "Club meeting",
< "start": "2026-11-05T18:30:00",
< "end": "2026-11-05T20:00:00",
< "location": "Main hall",
< "description": "Monthly meeting."
< },
< {
< "id": "sample-2",
< "title": "Open day",
< "start": "2026-11-14",
< "end": "2026-11-15"
< }
< ],
< "fieldMap": {
< "title": "title",
< "start": "start",
< "end": "end",
< "allDay": "allDay",
< "location": "location",
< "description": "description",
< "url": "url",
< "id": "id"
< },
< "defaultTimeZone": "UTC",
< "calendarName": "Events",
< "storeName": "ics-feed-publisher"
<}
<EOF
$curl "https://api.apify.com/v2/actors/kingii98~json-and-csv-event-data-to-subscribable-ics-feed-publisher/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'