POST
/
metrics
Authorization
Body
curl --request POST \
  --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,
  "name": "<string>",
  "needs_ground_truth": true,
  "pass_when": true,
  "prompt": "<string>",
  "return_type": "<string>",
  "task": "<string>",
  "threshold": {},
  "type": "<string>"
}'
{
  "inserted": 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
name
string
needs_ground_truth
boolean
pass_when
boolean
prompt
string
return_type
string
task
string
threshold
object
type
string

Response

200 - application/json
inserted
boolean