$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "prd": {
< "app_name": "Field Notes",
< "package_name": "com.example.fieldnotes",
< "description": "A small field-research capture app.",
< "theme": "material",
< "auth": true,
< "models": [
< {
< "name": "Observation",
< "collection": "observations",
< "fields": [
< {
< "name": "title",
< "label": "Title",
< "type": "text"
< },
< {
< "name": "count",
< "label": "Specimen count",
< "type": "number"
< },
< {
< "name": "verified",
< "label": "Verified",
< "type": "bool"
< }
< ]
< }
< ],
< "screens": [
< {
< "id": "observations",
< "title": "Observations",
< "kind": "list",
< "model": "Observation",
< "actions": [
< {
< "name": "openCapture",
< "kind": "navigate",
< "target": "capture"
< }
< ]
< },
< {
< "id": "capture",
< "title": "New observation",
< "kind": "form",
< "model": "Observation",
< "actions": [
< {
< "name": "saveObservation",
< "kind": "create",
< "target": "Observation"
< }
< ]
< }
< ]
< }
<}
<EOF
$curl "https://api.apify.com/v2/actors/vigorous_spit~prd-to-flutter-apk/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'