$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "useExampleData": false,
< "records": [
< {
< "productId": "BAT-100",
< "productName": "Example industrial battery",
< "manufacturer": "Example Manufacturer",
< "batteryCategory": "industrial",
< "model": "BAT-100",
< "capacityKwh": 4.2,
< "batteryChemistry": "LFP",
< "carbonFootprintKgCo2e": 220,
< "manufacturingLocation": "DE",
< "evidence": [
< {
< "field": "capacityKwh",
< "value": 4.2,
< "sourceType": "manufacturer_technical_document",
< "sourceUrl": "https://example.com/battery-technical-sheet.pdf",
< "documentHash": "sha256:replace-with-real-hash"
< }
< ]
< }
< ],
< "productUrls": [
< {
< "url": "https://example.com/battery-product"
< }
< ],
< "evidenceUrls": [
< {
< "url": "https://example.com/battery-technical-sheet.pdf"
< }
< ],
< "sourceDatasetId": "",
< "dppRecords": [],
< "dppUrls": [
< {
< "url": "https://example.com/battery/BAT-001"
< }
< ]
<}
<EOF
$curl "https://api.apify.com/v2/actors/zentrafoundry~eu-battery-passport-readiness-auditor/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'