$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "plots": [
< {
< "plotId": "demo-flagged-frontier",
< "commodity": "coffee",
< "geometry": {
< "type": "Polygon",
< "coordinates": [
< [
< [
< -45.2523,
< -13.0336
< ],
< [
< -45.2477,
< -13.0336
< ],
< [
< -45.2477,
< -13.029
< ],
< [
< -45.2523,
< -13.029
< ],
< [
< -45.2523,
< -13.0336
< ]
< ]
< ]
< }
< },
< {
< "plotId": "demo-clear-reference",
< "commodity": "coffee",
< "geometry": {
< "type": "Polygon",
< "coordinates": [
< [
< [
< -45.6023,
< -12.9523
< ],
< [
< -45.5977,
< -12.9523
< ],
< [
< -45.5977,
< -12.9477
< ],
< [
< -45.6023,
< -12.9477
< ],
< [
< -45.6023,
< -12.9523
< ]
< ]
< ]
< }
< },
< {
< "plotId": "demo-sliver-qc",
< "commodity": "coffee",
< "wkt": "POLYGON((-45.00019 -12.75028, -45.00001 -12.75028, -45.00001 -12.7501, -45.00019 -12.7501, -45.00019 -12.75028))"
< }
< ],
< "cutoffDate": "2020-12-31",
< "layers": [
< "hansen_gfc",
< "jrc_tmf"
< ],
< "maxTilesPerRun": 4,
< "maxCacheEntries": 300
<}
<EOF
$curl "https://api.apify.com/v2/actors/atlas-data~eudr-deforestation-risk-screener/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'