create_rule
Create a new underwriting rule with triggers and effects.
create_rule › Request Body
policy_type_idUUID of the policy type
nameRule name
categoryRule category (policy, property, vehicle, driver, claim, etc.)
moduleModule the rule applies to (all, bc, bq, events, stp)
descriptionRule description
severitySeverity level for STP rules (critical, high, medium, low)
waiver_behaviorWaiver behavior for STP rules (run_always, waived_for_x_terms)
waiver_termsNumber of terms for waiver (when waiver_behavior is waived_for_x_terms)
enabled_for_renewalWhether rule runs on renewals
enabled_for_endorsementWhether rule runs on endorsements
enabled_for_new_businessWhether rule runs on new business
sort_orderRule sort order
valid_from_dateStart date for rule validity (YYYY-MM-DD)
valid_to_dateEnd date for rule validity (YYYY-MM-DD)
properties_affectedWhich properties are affected (null, primary, non-primary)
exception_typeException type (include, exclude)
exception_agenciesList of agency IDs for exceptions
eventEvent type for events module rules
Array of rule triggers
Array of rule effects
create_rule › Responses
successmessagesdelete_rule
Code
delete_rule › Request Body
rule_idUUID of the rule to delete
delete_rule › Responses
successWhether the API call succeeded
messagesError messages if success is false
get_event_types
Code
get_event_types › Request Body
get_event_types › Responses
successWhether the API call succeeded
messagesError messages if success is false
List of available event types
get_rule
get_rules_config
Code
get_rules_config › Request Body
get_rules_config › Responses
successWhether the API call succeeded
messagesError messages if success is false
Rules configuration data
get_rules_documentation
Code
get_rules_documentation › Request Body
get_rules_documentation › Responses
successWhether the API call succeeded
messagesError messages if success is false
Advanced Triggers documentation content
list_rules
Code
list_rules › Request Body
policy_type_idUUID of the policy type to list rules for
list_rules › Responses
successWhether the API call succeeded
messagesError messages if success is false
Response containing the list of rules
list_rules_stp_results
Code
list_rules_stp_results › Request Body
revision_idUUID of the revision to get STP results for
pagePage number for pagination (default: 1)
page_sizeNumber of executions per page, max 100 (default: 25)
list_rules_stp_results › Responses
successWhether the API call succeeded
messagesError messages if success is false
STP execution results with pagination
simulate_rule
Code
simulate_rule › Request Body
Full rule definition (same structure as create_rule/update_rule)
quote_idUUID of the revision to simulate the rule against. Required for every rule category except 'claim'.
claim_idUUID of the claim to simulate the rule against. Required when the rule's category is 'claim'; ignored otherwise. The rule is simulated once against the whole claim: triggers are evaluated for the claim itself, and each effect is previewed against every exposure whose coverage type the effect targets. The policy revision comes from the claim, falling back to an exposure's coverage when the claim carries none.
property_idOptional UUID of a specific risk/property to scope the simulation. Ignored for UI-scoped rule categories (vehicle-ui, driver-ui, watercraft-ui) and for claim-scoped rules.
ui_contextOptional override for UI-scoped rule categories (vehicle-ui, driver-ui, watercraft-ui). When omitted, the simulation fans out across every matching risk on the revision: vehicles for vehicle-ui, drivers for driver-ui, watercrafts for watercraft-ui. Pass an explicit context to scope the simulation to a single risk or to inject custom field values. Same shape as the production run_quoting_ui_rules payload -- must contain at least one of: 'driver', 'drivers', 'vehicle', 'vehicles', 'watercraft', 'watercrafts'.
simulate_rule › Responses
successWhether the API call succeeded
API messages or validation errors
Simulation result data, or an empty array when request validation fails
update_rule
Update an existing underwriting rule with its triggers and effects.
Code
update_rule › Request Body
idUUID of the rule to update
policy_type_idUUID of the policy type
nameRule name
categoryRule category (policy, property, vehicle, driver, claim, etc.)
moduleModule the rule applies to (all, bc, bq, events, stp)
descriptionRule description
severitySeverity level for STP rules (critical, high, medium, low)
waiver_behaviorWaiver behavior for STP rules (run_always, waived_for_x_terms)
waiver_termsNumber of terms for waiver (when waiver_behavior is waived_for_x_terms)
enabled_for_renewalWhether rule runs on renewals
enabled_for_endorsementWhether rule runs on endorsements
enabled_for_new_businessWhether rule runs on new business
sort_orderRule sort order
valid_from_dateStart date for rule validity (YYYY-MM-DD)
valid_to_dateEnd date for rule validity (YYYY-MM-DD)
properties_affectedWhich properties are affected (null, primary, non-primary)
exception_typeException type (include, exclude)
exception_agenciesList of agency IDs for exceptions
eventEvent type for events module rules
Array of rule triggers. Include id to update existing triggers, omit id for new triggers. Existing triggers not included in this array are automatically soft-deleted.
Array of rule effects. Include id to update existing effects, omit id for new effects. Existing effects not included in this array are automatically soft-deleted.
update_rule › Responses
successmessagesvalidate_rule
Code
validate_rule › Request Body
policy_type_idUUID of the policy type this rule belongs to
nameName of the rule
categoryRule category (e.g., 'policy', 'property', 'vehicle', 'driver')
moduleRule module (e.g., 'bc', 'bq', 'stp', 'events')
idUUID of existing rule (optional, for update validation)
severitySeverity level for STP rules (e.g., 'critical', 'high', 'medium', 'low')
descriptionDescription of the rule
enabled_for_new_businessWhether the rule is enabled for new business
enabled_for_renewalWhether the rule is enabled for renewals
enabled_for_endorsementWhether the rule is enabled for endorsements
valid_from_dateStart date for rule validity
valid_to_dateEnd date for rule validity
List of rule triggers
List of rule effects
validate_rule › Responses
successWhether the API call succeeded
messagesError messages if success is false
Validation result
