PUT
/
metrics
Authorization
Body
curl --request PUT \
  --url https://api.honeyhive.ai/metrics \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '{
  "code_snippet": "<string>",
  "criteria": "<string>",
  "description": "<string>",
  "enabled_in_prod": true,
  "metric_id": "<string>",
  "name": "<string>",
  "needs_ground_truth": true,
  "pass_when": true,
  "prompt": "<string>",
  "return_type": "<string>",
  "threshold": {}
}'
{
  "updated": true
}

Authorizations

Authorization
string
headerrequired

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

Body

application/json
code_snippet
string
criteria
string
description
string
enabled_in_prod
boolean
metric_id
string
name
string
needs_ground_truth
boolean
pass_when
boolean
prompt
string
return_type
string
threshold
object

Response

200 - application/json
updated
boolean