{
  "manifest_version": "1.0.0",
  "template": {
    "id": "6d74c96a-13a0-43bb-968f-791dc72ba677",
    "slug": "railway-service-cron",
    "name": "Railway Service Cron",
    "description": "Starts and Stops railway services based on a cron schedule",
    "url": "https://railway.com/deploy/railway-service-cron",
    "upstream": {
      "repo_url": "https://github.com/smolpaw/railway-service-cron"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "Railway Service Cron",
      "source": {
        "repo": "https://github.com/smolpaw/railway-service-cron"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "TZ",
      "service": "Railway Service Cron",
      "description": "The timezone the cron schedule should run on",
      "secret": false,
      "strategy": "default",
      "default": "UTC"
    },
    {
      "key": "SERVICES_ID",
      "service": "Railway Service Cron",
      "description": "One or many comma separated list of service ids",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "STOP_SCHEDULE",
      "service": "Railway Service Cron",
      "description": "Your services will stop on this schedule",
      "secret": false,
      "strategy": "default",
      "default": "0 18 * * *"
    },
    {
      "key": "START_SCHEDULE",
      "service": "Railway Service Cron",
      "description": "Your services will start on this schedule",
      "secret": false,
      "strategy": "default",
      "default": "0 8 * * *"
    },
    {
      "key": "RAILWAY_ACCOUNT_TOKEN",
      "service": "Railway Service Cron",
      "description": "Railway Account token: https://railway.app/account/tokens",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "railway-service-cron"
      }
    },
    "cli": "railway deploy --template railway-service-cron",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "6d74c96a-13a0-43bb-968f-791dc72ba677",
            "serializedConfig": {
              "services": {
                "e56393e0-28e3-4002-b1d3-b84da4b0bd87": {
                  "icon": null,
                  "name": "Railway Service Cron",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null
                  },
                  "source": {
                    "repo": "https://github.com/smolpaw/railway-service-cron",
                    "rootDirectory": null
                  },
                  "variables": {
                    "TZ": {
                      "isOptional": false,
                      "description": "The timezone the cron schedule should run on",
                      "defaultValue": "UTC"
                    },
                    "SERVICES_ID": {
                      "isOptional": false,
                      "description": "One or many comma separated list of service ids",
                      "defaultValue": "{{SERVICES_ID}}"
                    },
                    "STOP_SCHEDULE": {
                      "isOptional": false,
                      "description": "Your services will stop on this schedule",
                      "defaultValue": "0 18 * * *"
                    },
                    "START_SCHEDULE": {
                      "isOptional": false,
                      "description": "Your services will start on this schedule",
                      "defaultValue": "0 8 * * *"
                    },
                    "RAILWAY_ACCOUNT_TOKEN": {
                      "isOptional": false,
                      "description": "Railway Account token: https://railway.app/account/tokens",
                      "defaultValue": "{{RAILWAY_ACCOUNT_TOKEN}}"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": false
  },
  "generated_at": "2026-09-12T22:14:39.841Z",
  "generator_version": "0.1.0"
}
