# Finalize Template Schedule Audit Cycle

> Perform Finalize Template Schedule Audit Cycle through Brightree.

Source: [https://genhealth.ai/docs/workflows/integrations/brightree/brightree_finalize_template_schedule_audit_cycle](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_finalize_template_schedule_audit_cycle)

Integration: [Brightree](https://genhealth.ai/docs/workflows/integrations/brightree.md)

- Handler: `brightree_finalize_template_schedule_audit_cycle`

- Connection type: `brightree`

## Inputs

- `account_key` — Account Key (text)
  Optional text value.
- `cycle_id` — Cycle Id (expression)
  Optional literal value or workflow expression.
- `max_candidates` — Max Candidates (number, required)
  Required numeric value.
  Default: `5000`

## Outputs

- `success` — Success
- `cycle_id` — Cycle Id
- `completed` — Completed
- `should_send_summary` — Should Send Summary
- `cycle_status` — Cycle Status
- `total_item_count` — Total Item Count
- `correct_count` — Correct Count
- `corrected_count` — Corrected Count
- `deferred_count` — Deferred Count
- `manual_review_count` — Manual Review Count
- `failed_count` — Failed Count
- `message` — Message
- `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": [
    "max_candidates"
  ],
  "properties": {
    "cycle_id": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "account_key": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "max_candidates": {
      "type": "number",
      "default": 5000,
      "description": "Required numeric value.",
      "x-workflow-field-type": "number"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "error": {},
    "message": {},
    "success": {},
    "cycle_id": {},
    "completed": {},
    "cycle_status": {},
    "failed_count": {},
    "correct_count": {},
    "deferred_count": {},
    "corrected_count": {},
    "total_item_count": {},
    "manual_review_count": {},
    "should_send_summary": {}
  },
  "additionalProperties": true
}
```
