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.

patchhttps://statsigapi.net/console/v1/prompts/{id}/eval_settings

Authorizations

STATSIG-API-KEYstringrequired

apiKey (header)

Path parameters

idstringrequired

id

Body

application/json
gradersobject[]

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
idstring

Grader ID.

namestring

Grader name, used when id is omitted.

isPrimaryboolean

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

isCriticalboolean

A critical grader that scores 0 fails the whole run. Defaults to the current value for an attached grader.

runScoreWeightnumber

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

Constraints:min: 0max: 100
datasetstring

Eval dataset name or ID to score offline evals against. Null leaves the dataset unchanged.

Constraints:nullable
runScoreobject

How 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
typestringrequired

primary uses the primary grader's score, average gives every grader equal weight, and weighted uses each grader's runScoreWeight.

Allowed values:primaryaverageweighted

Response

application/json
200· Update Prompt Eval Settings
messagestringrequired

A simple string explaining the result of the operation.

dataobjectrequired
Show child attributes
idstringrequired

ID

namestring

The gate display name

Constraints:min length: 3max length: 100pattern: ^[a-zA-Z0-9_\-. ]*$
idTypestring
descriptionstringrequired
Constraints:max length: 1000
lastModifierIDstringrequired

ID of the last modifier.

Constraints:nullable
lastModifiedTimenumberrequired

Time of the last modification.

Constraints:format: doublenullable
lastModifierEmailstringrequired

Email of the last modifier.

Constraints:nullable
lastModifierNamestringrequired

Name of the last modifier.

Constraints:nullable
creatorIDstring
Constraints:nullable
createdTimenumberrequired

Timestamp when the entity was created.

Constraints:format: double
creatorNamestringrequired

Name of the creator.

Constraints:nullable
creatorEmailstring
Constraints:nullable
tagsstring[]
targetAppsstring[]

List of target applications associated with this configuration.

holdoutIDsstring[]

Holdouts applied to this configuration.

teamstring
Constraints:nullable
teamIDstring
Constraints:nullable
versionnumber

Version number

Constraints:format: double
404· Not Found. The requested resource could not be found.
statusintegerrequired
Allowed values:404
messagestringrequired

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