For AI agents: a documentation index is available at /llms.txt. Append .md to any page URL for markdown, or send Accept: text/markdown.
Update Prompt Eval Settings
Set the graders attached to a prompt (replacing the current list), which one is primary or critical, which grade online traffic, the eval dataset, and the on…
Set the graders attached to a prompt (replacing the current list), which one is primary or critical, which grade online traffic, the eval dataset, and the online sampling rate.
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 shown as the headline score. 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.
isOnlinebooleanAlso grade sampled production traffic with this grader.
datasetstringEval dataset name or ID to score offline evals against. Null leaves the dataset unchanged.
nullableonlineSamplingRatenumberPercent of production traffic graded online, 0 to 10.
format: doublemin: 0max: 10Response
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?