POST
/
v1
/
evals
/
criteria
curl --request POST \
  --url https://api.lunary.ai/v1/evals/criteria \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "evalId": "<string>",
  "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.

Body

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

Response

200

Created criterion