@@ -256,6 +256,7 @@ def import_records(
256256 return_content : Literal ["count" , "ids" , "auto_ids" , "nothing" ] = "count" ,
257257 overwrite : Literal ["normal" , "overwrite" ] = "normal" ,
258258 import_format : Literal ["json" , "csv" , "xml" , "df" ] = "json" ,
259+ record_type : Literal ["flat" , "eav" ] = "flat" ,
259260 date_format : Literal ["YMD" , "DMY" , "MDY" ] = "YMD" ,
260261 force_auto_number : bool = False ,
261262 ):
@@ -284,6 +285,8 @@ def import_records(
284285 database if not specified in the to_import dictionaries.
285286 import_format:
286287 Format of incoming data. By default, to_import will be json-encoded
288+ record_type:
289+ Database output structure type, by default flat (one row per record)
287290 date_format:
288291 Describes the formatting of dates. By default, date strings
289292 are formatted as 'YYYY-MM-DD' corresponding to 'YMD'. If date
@@ -315,6 +318,7 @@ def import_records(
315318 )
316319 payload ["overwriteBehavior" ] = overwrite
317320 payload ["returnContent" ] = return_content
321+ payload ["type" ] = record_type
318322 payload ["dateFormat" ] = date_format
319323 payload ["forceAutoNumber" ] = force_auto_number
320324
0 commit comments