---
title: "Update a criterion"
method: PATCH
path: "/v1/evals/criteria/{id}"
tags: ["Evals", "Criteria"]
---

# Update a criterion

`PATCH /v1/evals/criteria/{id}`

## Request

- Base URL: `https://api.lunary.ai`
- URL: `https://api.lunary.ai/v1/evals/criteria/{id}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/lunary/apis/lunary-api/docs/v1/evals/criteria/:id/patch.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `id` string, required

## Request body

- object
  - `name` string
  - `metric` string
  - `threshold` number, nullable
  - `weighting` number
  - `parameters` object

## Response `200`

Updated criterion

---

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