{
  "manifest_version": "1.0.0",
  "template": {
    "id": "340e2055-83c0-4eae-96e0-aae63a504f73",
    "slug": "XaHdPv",
    "name": "Medplum Healthcare: Foomedical Template",
    "description": "One-click deploy Medplum's popular \"Foomedical\" healthcare starter app",
    "url": "https://railway.com/deploy/XaHdPv",
    "upstream": {
      "repo_url": "https://github.com/zuchka/foomedical"
    }
  },
  "services": [
    {
      "name": "foomedical",
      "source": {
        "repo": "https://github.com/zuchka/foomedical"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "foomedical",
      "description": "map to local port",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "XaHdPv"
      }
    },
    "cli": "railway deploy --template XaHdPv",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "340e2055-83c0-4eae-96e0-aae63a504f73",
            "serializedConfig": {
              "services": {
                "56a6bd81-9fd2-4ffc-a721-82d3f6e3156d": {
                  "icon": null,
                  "name": "foomedical",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null
                  },
                  "source": {
                    "repo": "https://github.com/zuchka/foomedical",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "map to local port",
                      "defaultValue": "3000"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": false
  },
  "generated_at": "2026-09-21T22:14:44.200Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-21T11:58:55.753Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_1ac4d2388d2f47de9810",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": false,
        "detail": "Repository \"zuchka/foomedical\" not found or is not accessible"
      }
    ]
  }
}
