PATCH
/
v1
/
evals
/
criteria
/
{id}
curl --request PATCH \
  --url https://api.lunary.ai/v1/evals/criteria/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "metric": "<string>",
  "threshold": 123,
  "weighting": 123,
  "parameters": {}
}'

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Body

application/json
name
string
metric
string
threshold
number | null
weighting
number
parameters
object

Response

200

Updated criterion