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.

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 shown as the headline score. 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.

isOnlineboolean

Also grade sampled production traffic with this grader.

datasetstring

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

Constraints:nullable
onlineSamplingRatenumber

Percent of production traffic graded online, 0 to 10.

Constraints:format: doublemin: 0max: 10

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?