$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "baselineQuantitiesFile": {
< "fileName": "baseline.csv",
< "content": "item_id,description,quantity,unit,location_or_work_package,revision_scope,quantity_basis,waste_basis\r\nW01,Wall length,100,cm,Level 1,Issued scope,net,excluded\r\nF01,Floor area,12.5,m2,Level 1,Issued scope,net,excluded\r\nF01,Floor area,7.5,m2,Level 1,Issued scope,net,excluded\r\nZ01,Additional opening,0,ea,Level 1,Issued scope,net,excluded\r\nM01,Removed section,8,m,Level 1,Issued scope,net,excluded\r\nR01,Slab volume,15,m3,Level 1,Issued scope,net,excluded\r\nB01,Plaster area,25,m2,Level 1,Issued scope,net,excluded\r\nP01,Pipework,3,m,Level 1,Issued scope,net,excluded\r\nX01,Concrete upstand length,5,m,Level 1,Issued scope,net,excluded\r\n"
< },
< "comparisonQuantitiesFile": {
< "fileName": "comparison.csv",
< "content": "item_id,description,quantity,unit,location_or_work_package,revision_scope,quantity_basis,waste_basis\r\nW01,Wall length,1,m,Level 1,Issued scope,net,excluded\r\nF01,Floor area,22,m2,Level 1,Issued scope,net,excluded\r\nZ01,Additional opening,2,ea,Level 1,Issued scope,net,excluded\r\nN01,New drainage,4,m,Level 1,Issued scope,net,excluded\r\nR01,Slab volume,18,m3,Level 1,Expanded scope,net,excluded\r\nB01,Plaster area,30,m2,Level 1,Issued scope,gross,excluded\r\nP01,Pipework,3,m,Level 2,Issued scope,net,excluded\r\nY01,Concrete upstand length,5,m,Level 1,Issued scope,net,excluded\r\n"
< },
< "unitConversions": [
< {
< "fromUnit": "cm",
< "toUnit": "m",
< "factor": "0.01"
< }
< ]
<}
<EOF
$curl "https://api.apify.com/v2/actors/afkdigital~construction-quantity-reconciliation/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'