$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "snapshots": [
< {
< "store": "demo-store",
< "label": "October",
< "capturedAt": "2026-10-01",
< "products": [
< {
< "id": 1,
< "handle": "trail-shoe",
< "title": "Trail Shoe",
< "vendor": "Northpeak",
< "product_type": "Footwear",
< "variants": [
< {
< "price": "89.00",
< "available": true
< }
< ]
< },
< {
< "id": 2,
< "handle": "rain-jacket",
< "title": "Rain Jacket",
< "vendor": "Northpeak",
< "product_type": "Outerwear",
< "variants": [
< {
< "price": "120.00",
< "available": true
< }
< ]
< },
< {
< "id": 3,
< "handle": "wool-sock",
< "title": "Wool Sock",
< "vendor": "Fieldwool",
< "product_type": "Accessories",
< "variants": [
< {
< "price": "14.00",
< "available": true
< }
< ]
< }
< ]
< },
< {
< "store": "demo-store",
< "label": "November",
< "capturedAt": "2026-11-01",
< "products": [
< {
< "id": 1,
< "handle": "trail-shoe",
< "title": "Trail Shoe",
< "vendor": "Northpeak",
< "product_type": "Footwear",
< "variants": [
< {
< "price": "79.00",
< "available": true
< }
< ]
< },
< {
< "id": 2,
< "handle": "rain-jacket",
< "title": "Rain Jacket",
< "vendor": "Northpeak",
< "product_type": "Outerwear",
< "variants": [
< {
< "price": "120.00",
< "available": false
< }
< ]
< },
< {
< "id": 4,
< "handle": "city-bag",
< "title": "City Bag",
< "vendor": "Urbanloop",
< "product_type": "Bags",
< "variants": [
< {
< "price": "65.00",
< "available": true
< }
< ]
< }
< ]
< }
< ]
<}
<EOF
$curl "https://api.apify.com/v2/actors/practical_ai_lab_jp~pal-shopify-brand-assortment-shifts/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'