---
title: "Update Prompt Eval Settings"
method: PATCH
path: "/console/v1/prompts/{id}/eval_settings"
tags: ["Prompts"]
---

# Update Prompt Eval Settings

`PATCH /console/v1/prompts/{id}/eval_settings`

## Request

- Base URL: `https://statsigapi.net`
- URL: `https://statsigapi.net/console/v1/prompts/{id}/eval_settings`
- Auth: API key in header `STATSIG-API-KEY`

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.

## Path parameters

- `id` string, required

## Request body

- AIConfigEvalSettingsUpdateDto
  - `graders` object[]: 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.
    - `id` string: Grader ID.
    - `name` string: Grader name, used when id is omitted.
    - `isPrimary` boolean: Grader shown as the headline score. When none is set, the current primary stays if still attached, else the first grader.
    - `isCritical` boolean: A critical grader that scores 0 fails the whole run. Defaults to the current value for an attached grader.
    - `isOnline` boolean: Also grade sampled production traffic with this grader.
  - `dataset` string, nullable: Eval dataset name or ID to score offline evals against. Null leaves the dataset unchanged.
  - `onlineSamplingRate` number, double: Percent of production traffic graded online, 0 to 100.

## Response `200`

Update Prompt Eval Settings

- object
  - `message` string, required: A simple string explaining the result of the operation.
  - `data` object, required: A single result.
    - `id` string, required: ID
    - `name` string: The gate display name
    - `idType` string
    - `description` string, required
    - `lastModifierID` string, nullable, required: ID of the last modifier.
    - `lastModifiedTime` number, double, nullable, required: Time of the last modification.
    - `lastModifierEmail` string, nullable, required: Email of the last modifier.
    - `lastModifierName` string, nullable, required: Name of the last modifier.
    - `creatorID` string, nullable
    - `createdTime` number, double, required: Timestamp when the entity was created.
    - `creatorName` string, nullable, required: Name of the creator.
    - `creatorEmail` string, nullable
    - `tags` string[]
    - `targetApps` string[]: List of target applications associated with this configuration.
    - `holdoutIDs` string[]: Holdouts applied to this configuration.
    - `team` string, nullable
    - `teamID` string, nullable
    - `version` number, double: Version number

## Other responses

- `404`: Not Found. The requested resource could not be found.

## Changes

- **2026-10-27** `45fe639dceeb`: 1 info
  - the `onlineSamplingRate` request property's max was increased from `10.00` to `100.00`
- **2026-10-21** `df19329dc8c0`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/statsig/apis/console-api/changes/console/v1/prompts/:id/eval_settings/patch.md)

---

[API](https://skmtc.dev/statsig/apis/console-api.md) - [All operations](https://skmtc.dev/statsig/apis/console-api/llms.txt) - [OpenAPI document](https://skmtc.dev/statsig/apis/console-api/revisions/605b784f2a7d?raw)
