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
Passed when editing an existing rule; not passed when creating.
Specifies Rule Name. This field is required.
Name of the risk group.
ignore_margin_call · MarginCall Exemptionover_financing_margin_call_ignore · OverLimit MarginCall Exemption
Single-select: 1 = enable, 2 = disable.
Allowed values:
1- Enabled2- Disable
1 · Enabled2 · Disable
Submitted only when the rule type is "Customized - single account"; it is the selected client's AAID.
Submitted only when the rule type is "Customized - client group"; values come from the risk_client_groups dynamic enumeration and are not fixed.
Call GET /v1/datasets/refs/risk_client_groups to retrieve the current data dictionary, and use the returned entry's key as this field's value.
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 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 200The request was processed successfully. The response data does not contain additional business fields.codemessagedatadataobjectdata structureNo nested fields
HTTP 400Bad request. Check the business error code in code and the error details in message.codemessagedatadataobjectdata structureNo nested fields
HTTP 401The user is not authenticated, or the login session has expired.codemessagedatadataobjectdata structureNo nested fields
HTTP 403The current account is not authorized to use this feature. Grant the required permission to the account in User Permission.codemessagedatadataobjectdata structureNo nested fields
HTTP 408The request timed out. Check the business error code in code and the error details in message.codemessagedatadataobjectdata structureNo nested fields