$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "spreadsheet": "https://docs.google.com/spreadsheets/d/1EZLnhDCfmhGUnlubmGE-WIfFie8KrJnJkKE2w9f-4AQ/edit",
< "sheetName": "Demo",
< "keyColumns": [
< "sku"
< ],
< "columns": [
< {
< "name": "sku",
< "type": "string",
< "pattern": "[A-Z]{3}-\\d{3}"
< },
< {
< "name": "qty",
< "type": "integer",
< "min": 0
< },
< {
< "name": "price",
< "type": "number",
< "min": 0
< },
< {
< "name": "active",
< "type": "boolean"
< },
< {
< "name": "updated",
< "type": "date"
< }
< ],
< "rows": [
< {
< "sku": "ABC-001",
< "qty": 5,
< "price": 9.5,
< "active": true,
< "updated": "2026-10-21"
< },
< {
< "sku": "ABC-002",
< "qty": 0,
< "price": 12,
< "active": false,
< "updated": "2026-10-20"
< }
< ]
<}
<EOF
$curl "https://api.apify.com/v2/actors/kumo-data-tools~google-sheets-safe-upsert/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'