analysisId is the analysis run id (the same id returned by /v1/analyses for
the run, not the analysis context id). Names must be unique within an analysis.
Typical workflow
- Create a config with
analysisId, a uniquename, orderedsegments, and orderedcolumns. - Query configs for an analysis (for example
{ "$eq": ["analysisId", "<analysis-run-id>"] }). - Read a config by id when you need the full definition.
- Delete configs you no longer need.
Segments
segments is an ordered list. Order defines the hierarchy shown in the dashboard table (outer segments first, inner
segments nested beneath them). Each value must be a valid SQL identifier.
risk_score is required in segments. Create requests without it are rejected.
Built-in segment keys (general ledger and similar analyses)
The web application builds population segment ids from enabled populations on the analysis.
Custom analysis segments
For custom (flex) analyses, additional segment fields may be used when they name categorical columns on the analysis entry data table. Those names must be valid SQL identifiers and must exist on the table. The analysis designer uses the same rules when defining risk segmentation there.Columns
columns is an ordered list of metric fields displayed in the dashboard table for each segment row. Values must match
the snake_case ids below (these are the same ids the web application sends as columns).
Count and value summaries
High / medium / low counts and values
High / medium / low percentages
Debit/credit column variants apply to general ledger analyses that expose separate debit and credit totals. Omit them
when not relevant to the analysis type.
Do not put segment keys (such as
risk_group or account_l1) in columns; those belong in segments.
Optional filters
These fields mirror the Risk group and Risk score filters on the dashboard facet bar. They restrict which scores and categories are in scope when the config is opened. They do not add extra grouping levels.riskGroups values are category labels, not risk range ids and not entries from /v1/risk-ranges.
Other fields
Example create request
Validation
analysisIdmust reference an existing analysis run.namemust be unique among configs for that analysis.segmentsmust includerisk_score.- Segment and column names must be valid SQL identifiers.
- Invalid segment or column combinations for the analysis type may be rejected at create time.

