Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions redcap/methods/records.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ def import_records(
return_content: Literal["count", "ids", "auto_ids", "nothing"] = "count",
overwrite: Literal["normal", "overwrite"] = "normal",
import_format: Literal["json", "csv", "xml", "df"] = "json",
record_type: Literal["flat", "eav"] = "flat",
date_format: Literal["YMD", "DMY", "MDY"] = "YMD",
force_auto_number: bool = False,
):
Expand Down Expand Up @@ -284,6 +285,8 @@ def import_records(
database if not specified in the to_import dictionaries.
import_format:
Format of incoming data. By default, to_import will be json-encoded
record_type:
Database output structure type, by default flat (one row per record)
date_format:
Describes the formatting of dates. By default, date strings
are formatted as 'YYYY-MM-DD' corresponding to 'YMD'. If date
Expand Down Expand Up @@ -315,6 +318,7 @@ def import_records(
)
payload["overwriteBehavior"] = overwrite
payload["returnContent"] = return_content
payload["type"] = record_type
payload["dateFormat"] = date_format
payload["forceAutoNumber"] = force_auto_number

Expand Down