CreateInsightRequest
runstringRequiredA succeeded study run: run_… from POST /runs, or srun_… for a run made in the app.
namestringRequiredWhat the chart shows as the card's title.
definitionstringYour definition slug. Needed only when the study reads more than one of yours.
descriptionstringreplacebooleanReplace an insight with the same name on the same definition. false refuses with conflict instead.
replacesstringRe-save this insight of yours (on the same definition) whatever its name is now: it keeps its place in the library, its active state and who added it, and never needs a library slot. Takes precedence over replace.
dry_runbooleanRun every check and return the preview without saving.
projectionbooleanA click on one of its events also draws the study's projection (outlook.js) on the chart (show: both). Needs the study to have one. If it cannot be set, the insight is still created and projection_error says why.
