Update Prompt Eval Settings
Set the graders attached to a prompt (replacing the current list), which one is primary or critical, how runs are scored, and the eval dataset. Online gradin…
Set the graders attached to a prompt (replacing the current list), which one is primary or critical, how runs are scored, and the eval dataset. Online grading is set by grading rules on each grader.
https://statsigapi.net/console/v1/prompts/{id}/eval_settingsAuthorizations
STATSIG-API-KEYstringrequiredapiKey (header)
Path parameters
idstringrequiredid
Body
application/jsongradersobject[]Graders attached to the prompt, replacing the current list; a grader left out is detached. Omit to keep the current graders. Flags left out on a grader keep their current values.
Show child attributes
idstringGrader ID.
namestringGrader name, used when id is omitted.
isPrimarybooleanGrader whose score is the run score when runScore.type is primary. When none is set, the current primary stays if still attached, else the first grader.
isCriticalbooleanA critical grader that scores 0 fails the whole run. Defaults to the current value for an attached grader.
runScoreWeightnumberPercent of the run score this grader carries when runScore.type is weighted. The weights across graders must add up to 100. Defaults to the grader's current weight, or 0 for a grader without one.
min: 0max: 100datasetstringEval dataset name or ID to score offline evals against. Null leaves the dataset unchanged.
nullablerunScoreobjectHow grader scores combine into each run's run score. Statsig scores every run, past runs included, with the current setting. Graders without a score in a run are left out, and a critical grader that scores 0 makes the run score 0. Omit to keep the current setting.
Show child attributes
typestringrequiredprimary uses the primary grader's score, average gives every grader equal weight, and weighted uses each grader's runScoreWeight.
primaryaverageweightedResponse
application/jsonmessagestringrequiredA simple string explaining the result of the operation.
dataobjectrequiredShow child attributes
idstringrequiredID
namestringThe gate display name
min length: 3max length: 100pattern: ^[a-zA-Z0-9_\-. ]*$idTypestringdescriptionstringrequiredmax length: 1000lastModifierIDstringrequiredID of the last modifier.
nullablelastModifiedTimenumberrequiredTime of the last modification.
format: doublenullablelastModifierEmailstringrequiredEmail of the last modifier.
nullablelastModifierNamestringrequiredName of the last modifier.
nullablecreatorIDstringnullablecreatedTimenumberrequiredTimestamp when the entity was created.
format: doublecreatorNamestringrequiredName of the creator.
nullablecreatorEmailstringnullabletagsstring[]targetAppsstring[]List of target applications associated with this configuration.
holdoutIDsstring[]Holdouts applied to this configuration.
teamstringnullableteamIDstringnullableversionnumberVersion number
format: doublestatusintegerrequired404messagestringrequiredWas this helpful?
For AI agents: a documentation index is available at /llms.txt. Append .md to any page URL for markdown, or send Accept: text/markdown.