Import rules from a CSV file
post/rules
Adds rules to the system via importing large CSV files. Rules are created using the content passed within the CSV file. The passed data should have 1 line for each action and condition.
1--_001_002_003_004_005_006_007_008_009_010_011_012_2Content-Type:text/csv; charset="utf-8";3Content-ID:Global-Issue4No global errors.567--_001_002_003_004_005_006_007_008_009_010_011_012_8Content-Type:text/csv; charset="utf-8";9Content-ID:Rejected-csv10No rejections.111213--_001_002_003_004_005_006_007_008_009_010_011_012_14Content-Type:text/csv; charset="utf-8";15Content-ID:Accepted-csv1617--_001_002_003_004_005_006_007_008_009_010_011_012_--18ruleset_id,ruleset_nm,folder_path,ruleset_desc,rule_id,rule_nm,rule_desc,rule_seq_no,conditional,record_rule_fired_flag,datatype,lhs_term,expression,expression_type,expression_order19fc96e3b2-0003-4ebb-bf3b-5409a2183da6,hmeq_ninq,/Users/sasdemo/My Folder,,8eccd5bb-a1f5-4084-8669-e80dd594b881,Default_rule_1,,1,if,Y,decimal,ninq," 1",CONDITION,120fc96e3b2-0003-4ebb-bf3b-5409a2183da6,hmeq_ninq,/Users/sasdemo/My Folder,,8eccd5bb-a1f5-4084-8669-e80dd594b881,Default_rule_1,,1,if,Y,string,out,"'ninq is 1'",ACTION,121fc96e3b2-0003-4ebb-bf3b-5409a2183da6,hmeq_ninq,/Users/sasdemo/My Folder,,15780b99-88ae-4076-8bd5-0fcd7b9ea8af,Default_rule_2,,2,if,Y,decimal,ninq," 0",CONDITION,122
Status | Meaning | Description | ||
---|---|---|---|---|
201 | Created | Success and failure responses from CSV import processing. See `multipart/mixed` media type definition within this API's documentation. | Headers | Schema |
400 | Bad Request | The request was invalid. | Schema |