ChartnautDocs

CreateInsightRequest

object
runstringRequired

A succeeded study run: run_… from POST /runs, or srun_… for a run made in the app.

namestringRequired

What the chart shows as the card's title.

1 to 120 characters
definitionstring

Your definition slug. Needed only when the study reads more than one of yours.

descriptionstring
At most 2000 characters
replaceboolean

Replace an insight with the same name on the same definition. false refuses with conflict instead.

Default true
replacesstring

Re-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.

Pattern ^ins_[0-9]+$Example ins_61
dry_runboolean

Run every check and return the preview without saving.

Default false
projectionboolean

A 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.

Default false

Used by#