# Set Patient Account Group

> Perform Set Patient Account Group through Brightree.

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

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

- Handler: `brightree_set_patient_account_group`

- Connection type: `brightree`

## Inputs

- `patient_key` — Patient Key (expression, required)
  Required literal value or workflow expression.
- `account_group` — Account Group (expression, required)
  Required literal value or workflow expression.

## Outputs

- `success` — Success
- `message` — Message
- `updated_fields` — Updated Fields
- `account_group` — Account Group
- `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": [
    "patient_key",
    "account_group"
  ],
  "properties": {
    "patient_key": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "account_group": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "error": {},
    "message": {},
    "success": {},
    "account_group": {},
    "updated_fields": {}
  },
  "additionalProperties": true
}
```
