https://b-api.longbridge.xyz/v1/risk_monitoring/rule_engine/save_risk_ruleAuthorization
Send the Broker ACCESS_TOKEN as Authorization: Bearer <token>.
Request body application/json
Risk Rule ID. Passed when editing an existing rule; not passed when creating.
Rule Name
Rule Group Name. Values come from the risk_groups dynamic enumeration and are not fixed.
Status. Single-select: 1 = enable, 2 = disable.
Account AAID. Submitted only when the rule type is "Customized - single account"; it is the selected client's AAID.
Client Group ID. Submitted only when the rule type is "Customized - client group"; values come from the ref_client_group_query_risk dynamic enumeration and are not fixed.
Rule Detail List. Each item contains parameter (the rule parameter name, from the risk_rule_parameter_cfg_query dynamic query, not fixed), operator (comparison operator = / >, fixed to = for boolean parameters), and target_value (for boolean type, 1/0 = TRUE/FALSE; for float type, a numeric string).
Audit Frontend Resource. Audit information shown in the approval ticket: operation type (add/edit), rule type (global/customized), and a human-readable text comparison of the rule details before and after the change.
Responses
HTTP 200No confirmable field definitions are available for the response yet.codemessagedatadataobjectdata structureNo nested fields