$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "spec": {
< "title": "Galley kitchen",
< "room": {
< "width": 4.2,
< "depth": 3.6,
< "height": 2.7
< },
< "style": {
< "counter": "white_quartz"
< },
< "windows": [
< {
< "wall": "north",
< "u0": 1.75,
< "u1": 2.85,
< "z0": 1.05,
< "z1": 2
< }
< ],
< "openings": [
< {
< "wall": "south",
< "u0": 0.4,
< "u1": 1.3
< }
< ],
< "cabinet_runs": [
< {
< "wall": "north",
< "start": 0,
< "end": 4.2,
< "uppers": true,
< "appliances": [
< {
< "type": "fridge",
< "at": 0,
< "width": 0.9
< },
< {
< "type": "sink",
< "at": 1.9,
< "width": 0.8
< },
< {
< "type": "dishwasher",
< "at": 2.7,
< "width": 0.6
< },
< {
< "type": "range",
< "at": 3.3,
< "width": 0.76
< }
< ]
< }
< ],
< "island": {
< "x": 2.1,
< "y": 1.5,
< "width": 2,
< "depth": 0.9,
< "pendants": 2,
< "stools": 3
< }
< }
<}
<EOF
$curl "https://api.apify.com/v2/actors/perchpermits~kitchen-floor-plan-takeoff/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'