# Fail Workflow Run

> Perform Fail Workflow Run through GenHealth.

Source: [https://genhealth.ai/docs/workflows/integrations/gen-health/genhealth_fail_workflow_run](https://genhealth.ai/docs/workflows/integrations/gen-health/genhealth_fail_workflow_run)

Integration: [GenHealth](https://genhealth.ai/docs/workflows/integrations/gen-health.md)

- Handler: `genhealth_fail_workflow_run`

## Inputs

- `document_id` — Document Id (expression)
  Optional literal value or workflow expression.
- `message` — Message (textarea, required)
  Required text value.

## Outputs

- `success` — Success
- `document_id` — Document Id
- `error` — Error

Output schema completeness: `best_effort_declared`

## Safety

- External effect: `write`
- Confirmation recommended: no
- Retry safe: no
- Dry run supported: no

## Schemas

These schemas are first-pass authoring guidance. Runtime validation remains authoritative.

### Input schema

```json
{
  "type": "object",
  "required": [
    "message"
  ],
  "properties": {
    "message": {
      "type": "string",
      "description": "Required text value.",
      "x-workflow-field-type": "textarea"
    },
    "document_id": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "error": {},
    "success": {},
    "document_id": {}
  },
  "additionalProperties": true
}
```
