# Set Patient Sales Rep

> Perform Set Patient Sales Rep through Bonafide.

Source: [https://genhealth.ai/docs/workflows/integrations/bonafide/bonafide_set_patient_sales_rep](https://genhealth.ai/docs/workflows/integrations/bonafide/bonafide_set_patient_sales_rep)

Integration: [Bonafide](https://genhealth.ai/docs/workflows/integrations/bonafide.md)

- Handler: `bonafide_set_patient_sales_rep`

- Connection type: `bonafide`

## Inputs

- `customer_id` — Customer Id (expression, required)
  Required literal value or workflow expression.
- `sales_rep_id` — Sales Rep Id (expression, required)
  Required literal value or workflow expression.

## Outputs

- `success` — Success
- `customer_id` — Customer Id
- `sales_rep_id` — Sales Rep Id
- `previous_sales_rep_id` — Previous Sales Rep Id
- `message` — Message
- `error` — Error
- `error_message` — Error Message

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": [
    "customer_id",
    "sales_rep_id"
  ],
  "properties": {
    "customer_id": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "sales_rep_id": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "error": {},
    "message": {},
    "success": {},
    "customer_id": {},
    "sales_rep_id": {},
    "error_message": {},
    "previous_sales_rep_id": {}
  },
  "additionalProperties": true
}
```
