# Download and Upload Documents to Niko

> Perform Download and Upload Documents to Niko through Parachute Health.

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

Integration: [Parachute Health](https://genhealth.ai/docs/workflows/integrations/parachute-health.md)

- Handler: `parachute_download_upload_documents_to_niko`

- Connection type: `parachute`

## Inputs

- `order_id` — Order Id (expression, required)
  Required literal value or workflow expression.
- `supplier_id` — Supplier Id (expression)
  Optional literal value or workflow expression.
- `patient_id` — Patient Id (expression, required)
  Required literal value or workflow expression.
- `downloadable_documents` — Downloadable Documents (expression)
  Optional literal value or workflow expression.
- `document_keys` — Document Keys (text)
  Optional text value.
  Default: `"all"`
- `document_type` — Document Type (select, dynamic options)
  Optional selected identifier or value. Retrieve allowed values from the dynamic options endpoint.
  Default: `"Parachute Documents"`

## Outputs

- `success` — Success
- `status` — Status
- `uploaded_count` — Uploaded Count
- `skipped_count` — Skipped Count
- `failed_count` — Failed Count
- `document_ids` — Document Ids
- `patient_document_ids` — Patient Document Ids
- `documents` — Documents
- `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": [
    "order_id",
    "patient_id"
  ],
  "properties": {
    "order_id": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "patient_id": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "supplier_id": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "document_keys": {
      "type": "string",
      "default": "all",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "document_type": {
      "type": "string",
      "default": "Parachute Documents",
      "description": "Optional selected identifier or value. Retrieve allowed values from the dynamic options endpoint.",
      "x-dynamic-options": true,
      "x-workflow-field-type": "select"
    },
    "downloadable_documents": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "error": {},
    "status": {},
    "success": {},
    "documents": {},
    "document_ids": {},
    "failed_count": {},
    "error_message": {},
    "skipped_count": {},
    "uploaded_count": {},
    "patient_document_ids": {}
  },
  "additionalProperties": true
}
```
