Import rules from a CSV file

post/rules
Internal-Use Only

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.

Request Samples

1

Response Samples

1--_001_002_003_004_005_006_007_008_009_010_011_012_
2Content-Type:text/csv; charset="utf-8";
3Content-ID:Global-Issue
4No global errors.
5
6
7--_001_002_003_004_005_006_007_008_009_010_011_012_
8Content-Type:text/csv; charset="utf-8";
9Content-ID:Rejected-csv
10No rejections.
11
12
13--_001_002_003_004_005_006_007_008_009_010_011_012_
14Content-Type:text/csv; charset="utf-8";
15Content-ID:Accepted-csv
16
17--_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_order
19fc96e3b2-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,1
20fc96e3b2-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,1
21fc96e3b2-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,1
22

Request Body

Rows of CSV formatted data for importing rules. See the text/csv media type definition within this API's documentation.

Responses

StatusMeaningDescription
201CreatedSuccess and failure responses from CSV import processing. See `multipart/mixed` media type definition within this API's documentation.HeadersSchema
400Bad RequestThe request was invalid.Schema