Prerequisites
Complete Get started so the Python SDK is installed and configured. You also need:- A MindBridge tenant host that you can access, such as
{your-tenant}.mindbridge.ai. - An engagement ID for an engagement that contains one or more analyses.
Overview
In this guide you will:- Authenticate with the MindBridge API and load an engagement by ID.
- Iterate through every analysis in the engagement and skip runs that are not complete.
- Create a risk segmentation configuration on each completed analysis result, replacing any existing configuration with the same name.
Configure Your Inputs
Adjust the values in the Configure inputs section at the top of the script below to match your tenant, engagement, and segmentation requirements. Typically, you only need to update that section; the rest of the script follows a standard process.mindbridge_url: The MindBridge host for your tenant.engagement_id: The ID of the engagement whose completed analyses should receive the configuration.risk_segmentation_config: TheRiskSegmentationConfigItemto apply. Updatename,segments, andcolumnsto match the grouping and metrics you want in MindBridge. The script copies this item and setsanalysis_idfor each completed analysis.
Complete example
When the script finishes, each completed analysis in the engagement has a risk segmentation configuration with the name you specified. Analyses without a latest result are left unchanged. To modify this workflow, adjust
segments, columns, or the configuration name to
match how your team reviews risk in MindBridge.
