Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Response
200
Created criterion
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": {}
}'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": {}
}'Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Created criterion