import_file
Upload a file to a REDCap record field using base64 content, specifying record, field, and optional event or repeat instance.
Instructions
Import (upload) a file into a REDCap record field.
Args: record: Record ID to attach the file to. field: Name of the file upload field. file_name: Name to give the file in REDCap. content_base64: Base64-encoded file content. event: Event name (longitudinal projects only). repeat_instance: Repeat instance number for repeating instruments/events.
Returns: Confirmation message.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| event | No | ||
| field | Yes | ||
| record | Yes | ||
| file_name | Yes | ||
| content_base64 | Yes | ||
| repeat_instance | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |