Type of event that the metric is set to be computed on
Available options:
model,
tool,
chain,
session
Response
200
Metric updated successfully
Was this page helpful?
{"docsConfig":{"theme":"aspen","$schema":"https://mintlify.com/docs.json","name":"HoneyHive AI Docs","description":"AI observability and evaluation platform. Trace, evaluate, monitor, and improve AI agents and LLM applications.","colors":{"primary":"#A56311","light":"#E8A23D","dark":"#A56311"},"logo":{"light":"https://mintcdn.com/honeyhiveai/lWy7JAPdMsmL06l1/logo/light.svg?fit=max\u0026auto=format\u0026n=lWy7JAPdMsmL06l1\u0026q=85\u0026s=419c99bb22ce1e89ae8fb4a87c589528","dark":"https://mintcdn.com/honeyhiveai/lWy7JAPdMsmL06l1/logo/dark.svg?fit=max\u0026auto=format\u0026n=lWy7JAPdMsmL06l1\u0026q=85\u0026s=2cee835bc5438cd29005218a18e0168b"},"favicon":{"light":"https://mintcdn.com/honeyhiveai/W7aN2oGPMTbOQxZv/images/favicon.svg?fit=max\u0026auto=format\u0026n=W7aN2oGPMTbOQxZv\u0026q=85\u0026s=1c201da27b06120f1c630bf53ad1a831","dark":"https://mintcdn.com/honeyhiveai/W7aN2oGPMTbOQxZv/images/favicon-dark.svg?fit=max\u0026auto=format\u0026n=W7aN2oGPMTbOQxZv\u0026q=85\u0026s=01cb0bffc66454f0e19853e701832110"},"api":{"openapi":["output.yaml","https://raw.githubusercontent.com/honeyhiveai/honeyhive-openapi/main/data_plane_openapi.yaml","https://raw.githubusercontent.com/honeyhiveai/honeyhive-openapi/main/control_plane_openapi.yaml"],"mdx":{"auth":{"method":"key","name":"key"},"server":"https://api.dp1.us.honeyhive.ai"}},"appearance":{"default":"light"},"background":{"color":{"light":"#ffffff","dark":"#101010"}},"navbar":{"links":[{"href":"https://discord.gg/vqctGpqA97","label":"Community"}],"primary":{"type":"button","label":"Log In","href":"https://app.us.honeyhive.ai"}},"footer":{"socials":{"x":"https://x.com/honeyhiveai","linkedin":"https://www.linkedin.com/company/honeyhive-ai","github":"https://github.com/honeyhiveai"},"links":[{"header":"Resources","items":[{"label":"Quickstart","href":"https://docs.honeyhive.ai/v2/introduction/tracing-quickstart"},{"label":"SDK Reference","href":"https://docs.honeyhive.ai/v2/sdk-reference/overview"},{"label":"API Reference","href":"https://docs.honeyhive.ai/v2/api-reference-autogen/sessions/start-a-new-session"},{"label":"Integrations","href":"https://docs.honeyhive.ai/v2/integrations/openai"},{"label":"Changelog","href":"https://docs.honeyhive.ai/v2/changelog/product"}]},{"header":"Explore","items":[{"label":"Sign Up","href":"https://app.us.honeyhive.ai"},{"label":"Pricing","href":"https://www.honeyhive.ai/pricing"},{"label":"Blog","href":"https://honeyhive.ai/blog"}]},{"header":"Platform","items":[{"label":"Observability","href":"https://honeyhive.ai/observability"},{"label":"Evaluation","href":"https://honeyhive.ai/evaluation"},{"label":"Prompt Management","href":"https://honeyhive.ai/playground"}]},{"header":"Legal","items":[{"label":"Terms of Service","href":"https://honeyhive.ai/terms"},{"label":"Privacy Policy","href":"https://honeyhive.ai/privacy"}]}]},"search":{"prompt":"Search or ask AI..."},"seo":{"metatags":{"og:site_name":"HoneyHive AI Docs"},"indexing":"navigable"},"integrations":{"posthog":{"apiKey":"phc_CtmMXHNhIs1Iem8viAsXYH7lB0aaj4X2nCrCunPqDbF","sessionRecording":false},"telemetry":{"enabled":true}},"contextual":{"options":["copy","view","chatgpt","claude","mcp","cursor","vscode",{"title":"Join Discord","description":"Get help from the HoneyHive community","icon":"discord","href":"https://discord.gg/vqctGpqA97"}],"display":"header"},"styling":{"latex":false},"navigation":{"global":{},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"honeyhiveai","hasAudioNarration":false,"actualSubdomain":"honeyhiveai","customDomains":["docs.honeyhive.ai"],"gitSource":{"type":"github","owner":"honeyhiveai","repo":"honeyhive-ai-docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"feedback":{"issues":false,"edits":false,"thumbs":true,"agentFeedback":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6aee1313a829c37e3ffc25d8","clientVersion":"0.0.4094","searchFilterCounts":[{"language":"default","tag":"v2","count":395},{"language":"default","tag":"SDK Reference","count":175},{"language":"default","tag":"Reference","count":172},{"language":"default","tag":"TypeScript API SDK","count":114},{"language":"default","tag":"Documentation","count":91},{"language":"default","tag":"API Reference","count":71},{"language":"default","tag":"Data Plane API","count":51},{"language":"default","tag":"TypeScript Control Plane SDK","count":50},{"language":"default","tag":"Experiments","count":40},{"language":"default","tag":"Integrations","count":34}]},"assistantConfig":{"deflection":{"enabled":true,"email":"support@honeyhive.ai"}},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":".update-container .hh-update-entry:first-child>h2{margin-top:0}"}],"page":{"pagePath":"api-reference/metrics/update-an-existing-metric","slug":"/api-reference/metrics/update-an-existing-metric","pageMetadata":{"openapi":"put /metrics","noindex":true,"title":"Update an existing metric","description":"Edit a metric","href":"/api-reference/metrics/update-an-existing-metric"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Edit a metric\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"openapi":"put /metrics","noindex":true,"title":"Update an existing metric","description":"Edit a metric","href":"/api-reference/metrics/update-an-existing-metric"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/honeyhiveai/295d4d275d20dba2/leadfeeder.js"],"openApiReferenceData":{"operation":{"tags":["Metrics"],"operationId":"updateMetric","summary":"Update an existing metric","description":"Edit a metric","requestBody":"6ba73011-ae8d-44a2-ae54-e31ba248b5b7","responses":{"200":"a4058770-de5f-4d56-8af9-ab5b991ac130"},"x-codeSamples":[{"lang":"python","label":"updateMetric","source":"import honeyhive\nfrom honeyhive.models import components\n\ns = honeyhive.HoneyHive(\n bearer_auth=\"\u003cYOUR_BEARER_TOKEN_HERE>\",\n)\n\n\nres = s.metrics.update_metric(request=components.MetricEdit(\n metric_id='\u003cvalue>',\n))\n\nif res is not None:\n # handle response\n pass"},{"lang":"typescript","label":"updateMetric","source":"import { HoneyHive } from \"honeyhive\";\nimport { MetricEditEventType, MetricEditReturnType, MetricEditType } from \"honeyhive/dist/models/components\";\n\nasync function run() {\n const sdk = new HoneyHive({\n bearerAuth: \"\u003cYOUR_BEARER_TOKEN_HERE>\",\n });\n\n const res = await sdk.metrics.updateMetric({\n metricId: \"\u003cvalue>\",\n threshold: {},\n });\n\n if (res.statusCode == 200) {\n // handle response\n }\n}\n\nrun();"}],"method":"put","type":"path","servers":["9c085861-5b70-49fb-8539-db0cd1f26b97"],"security":["a9b62862-c317-4d53-990d-dc3e72abce55"],"path":"/metrics","baseUrlOptions":["https://api.honeyhive.ai"],"title":"Update an existing metric","codeSamples":[{"label":"updateMetric","lang":"python","source":"import honeyhive\nfrom honeyhive.models import components\n\ns = honeyhive.HoneyHive(\n bearer_auth=\"\u003cYOUR_BEARER_TOKEN_HERE>\",\n)\n\n\nres = s.metrics.update_metric(request=components.MetricEdit(\n metric_id='\u003cvalue>',\n))\n\nif res is not None:\n # handle response\n pass"},{"label":"updateMetric","lang":"typescript","source":"import { HoneyHive } from \"honeyhive\";\nimport { MetricEditEventType, MetricEditReturnType, MetricEditType } from \"honeyhive/dist/models/components\";\n\nasync function run() {\n const sdk = new HoneyHive({\n bearerAuth: \"\u003cYOUR_BEARER_TOKEN_HERE>\",\n });\n\n const res = await sdk.metrics.updateMetric({\n metricId: \"\u003cvalue>\",\n threshold: {},\n });\n\n if (res.statusCode == 200) {\n // handle response\n }\n}\n\nrun();"}],"requiredOnlyExamples":false,"requestExampleType":"codeSamples","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"metric_id":{"type":"string","description":"Unique identifier of the metric","isRequired":true,"uniqueKey":"metric_id","typeLabel":"string"},"criteria":{"type":"string","description":"Criteria for human metrics","uniqueKey":"criteria","typeLabel":"string"},"name":{"type":"string","description":"Updated name of the metric","uniqueKey":"name","typeLabel":"string"},"description":{"type":"string","description":"Short description of what the metric does","uniqueKey":"description","typeLabel":"string"},"code_snippet":{"type":"string","description":"Updated code block for the metric","uniqueKey":"code_snippet","typeLabel":"string"},"prompt":{"type":"string","description":"Updated Evaluator prompt for the metric","uniqueKey":"prompt","typeLabel":"string"},"type":{"type":"string","enum":["custom","model","human"],"description":"Type of the metric - \"custom\", \"model\" or \"human\"","uniqueKey":"type","typeLabel":"enum\u003cstring>"},"enabled_in_prod":{"type":"boolean","description":"Whether to compute on all production events automatically","uniqueKey":"enabled_in_prod","typeLabel":"boolean"},"needs_ground_truth":{"type":"boolean","description":"Whether a ground truth (on metadata) is required to compute it","uniqueKey":"needs_ground_truth","typeLabel":"boolean"},"return_type":{"type":"string","enum":["boolean","float","string"],"description":"The data type of the metric value - \"boolean\", \"float\", \"string\"","uniqueKey":"return_type","typeLabel":"enum\u003cstring>"},"threshold":{"type":"object","properties":{"min":{"type":"number","uniqueKey":"threshold.min","typeLabel":"number"},"max":{"type":"number","uniqueKey":"threshold.max","typeLabel":"number"}},"description":"Threshold for numeric metrics to decide passing or failing in tests","uniqueKey":"threshold","typeLabel":"object"},"pass_when":{"type":"boolean","description":"Threshold for boolean metrics to decide passing or failing in tests","uniqueKey":"pass_when","typeLabel":"boolean"},"event_name":{"type":"string","description":"Name of event that the metric is set to be computed on","uniqueKey":"event_name","typeLabel":"string"},"event_type":{"type":"string","enum":["model","tool","chain","session"],"description":"Type of event that the metric is set to be computed on","uniqueKey":"event_type","typeLabel":"enum\u003cstring>"}},"required":["metric_id"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"metric_id":"\u003cstring>","criteria":"\u003cstring>","name":"\u003cstring>","description":"\u003cstring>","code_snippet":"\u003cstring>","prompt":"\u003cstring>","enabled_in_prod":true,"needs_ground_truth":true,"threshold":{"min":123,"max":123},"pass_when":true,"event_name":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"a4058770-de5f-4d56-8af9-ab5b991ac130":{"description":"Metric updated successfully","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}}},"security":{"a9b62862-c317-4d53-990d-dc3e72abce55":{"BearerAuth":{"type":"http","scheme":"bearer","scopes":[]}}},"servers":{"9c085861-5b70-49fb-8539-db0cd1f26b97":{"url":"https://api.honeyhive.ai"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","scopes":[]},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"BearerAuth","name":"Authorization"}],"title":"BearerAuth"}]},"originalFileLocation":"output.yaml"},"subdomain":"honeyhiveai","siteName":"HoneyHive AI Docs","title":"Update an existing metric - HoneyHive AI Docs","relatedPagesConfig":{"enabled":true,"limit":3,"mode":"automatic"},"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2025-08-07T03:43:53.512Z","originalFileLocation":"api-reference/metrics/update-an-existing-metric.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"light\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Edit a metric\">\u003cmeta data-mint-head name=\"application-name\" content=\"HoneyHive AI Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003cmeta data-mint-head name=\"robots\" content=\"noindex\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/honeyhiveai/XiZ-DZ6IaFrWYjlm/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/honeyhiveai/XiZ-DZ6IaFrWYjlm/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/honeyhiveai/XiZ-DZ6IaFrWYjlm/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/honeyhiveai/XiZ-DZ6IaFrWYjlm/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/honeyhiveai/XiZ-DZ6IaFrWYjlm/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/honeyhiveai/XiZ-DZ6IaFrWYjlm/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/honeyhiveai/XiZ-DZ6IaFrWYjlm/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/honeyhiveai/XiZ-DZ6IaFrWYjlm/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/honeyhiveai/XiZ-DZ6IaFrWYjlm/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Update an existing metric - HoneyHive AI Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Edit a metric\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"HoneyHive AI Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.honeyhive.ai/api-reference/metrics/update-an-existing-metric\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://honeyhiveai.mintlify.site/_mintlify/api/og/v2?division=Metrics\u0026amp;title=Update+an+existing+metric\u0026amp;description=Edit+a+metric\u0026amp;theme=5d33c6c4b6bf57211dea5b47\u0026amp;signature=37fdeb0dc78461952a092407748938bbb982798f8f15a692d918b8c1a6a33d60\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Update an existing metric - HoneyHive AI Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Edit a metric\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://honeyhiveai.mintlify.site/_mintlify/api/og/v2?division=Metrics\u0026amp;title=Update+an+existing+metric\u0026amp;description=Edit+a+metric\u0026amp;theme=5d33c6c4b6bf57211dea5b47\u0026amp;signature=37fdeb0dc78461952a092407748938bbb982798f8f15a692d918b8c1a6a33d60\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/honeyhiveai/XiZ-DZ6IaFrWYjlm/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"HoneyHive AI Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#A56311\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.honeyhive.ai/api-reference/metrics/update-an-existing-metric\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/metrics/update-an-existing-metric.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"HoneyHive AI Docs\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"HoneyHive AI Docs","nav":{"global":{},"products":[{"product":"v2","icon":"hive","description":"The next generation of HoneyHive.","pages":[{"title":"v2","href":"/v2/introduction/what-is-hhai"}]},{"product":"v1 (legacy)","icon":"server","description":"Deprecating Nov 5, 2026.","tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction/what-is-hhai"}]},{"tab":"SDK Reference","pages":[{"title":"SDK Reference","href":"/sdk-reference/authentication"}]},{"tab":"API Reference","groups":[{"group":"Session","pages":[{"openapi":"output.yaml post /session/start","title":"Start a new session","href":"/api-reference/session/start-a-new-session"},{"openapi":"get /session/{session_id}","title":"Retrieve a session","href":"/api-reference/session/retrieve-a-session"}]},{"group":"Events","pages":[{"openapi":"output.yaml put /events","title":"Update an event","href":"/api-reference/events/update-an-event"},{"openapi":"output.yaml post /events","title":"Create a new event","href":"/api-reference/events/create-a-new-event"},{"openapi":"post /events/export","title":"Retrieve events based on filters","href":"/api-reference/events/retrieve-events-based-on-filters"},{"openapi":"output.yaml post /events/model","title":"Create a new model event","href":"/api-reference/events/create-a-new-model-event"},{"openapi":"output.yaml post /events/batch","title":"Create a batch of events","href":"/api-reference/events/create-a-batch-of-events"},{"openapi":"output.yaml post /events/model/batch","title":"Create a batch of model events","href":"/api-reference/events/create-a-batch-of-model-events"}]},{"group":"Metrics","pages":[{"openapi":"get /metrics","title":"Get all metrics","description":"Retrieve a list of all metrics","href":"/api-reference/metrics/get-all-metrics"},{"openapi":"put /metrics","title":"Update an existing metric","href":"/api-reference/metrics/update-an-existing-metric"},{"openapi":"post /metrics","title":"Create a new metric","description":"Add a new metric","href":"/api-reference/metrics/create-a-new-metric"},{"openapi":"delete /metrics","title":"Delete a metric","href":"/api-reference/metrics/delete-a-metric"}]},{"group":"Datapoints","pages":[{"openapi":"get /datapoints","title":"Retrieve a list of datapoints","href":"/api-reference/datapoints/retrieve-a-list-of-datapoints"},{"openapi":"post /datapoints","title":"Create a new datapoint","href":"/api-reference/datapoints/create-a-new-datapoint"},{"openapi":"get /datapoints/{id}","title":"Retrieve a specific datapoint","href":"/api-reference/datapoints/retrieve-a-specific-datapoint"},{"openapi":"put /datapoints/{id}","title":"Update a specific datapoint","href":"/api-reference/datapoints/update-a-specific-datapoint"},{"openapi":"delete /datapoints/{id}","title":"Delete a specific datapoint","href":"/api-reference/datapoints/delete-a-specific-datapoint"}]},{"group":"Datasets","pages":[{"openapi":"get /datasets","title":"Get datasets","href":"/api-reference/datasets/get-datasets"},{"openapi":"put /datasets","title":"Update a dataset","href":"/api-reference/datasets/update-a-dataset"},{"openapi":"post /datasets","title":"Create a dataset","href":"/api-reference/datasets/create-a-dataset"},{"openapi":"delete /datasets","title":"Delete a dataset","href":"/api-reference/datasets/delete-a-dataset"},{"openapi":"post /datasets/{dataset_id}/datapoints","title":"Add datapoints to a dataset","href":"/api-reference/datasets/add-datapoints-to-a-dataset"}]},{"group":"Projects","pages":[{"openapi":"get /projects","title":"Get a list of projects","href":"/api-reference/projects/get-a-list-of-projects"},{"openapi":"put /projects","title":"Update an existing project","href":"/api-reference/projects/update-an-existing-project"},{"openapi":"post /projects","title":"Create a new project","href":"/api-reference/projects/create-a-new-project"},{"openapi":"delete /projects","title":"Delete a project","href":"/api-reference/projects/delete-a-project"}]},{"group":"Experiments","pages":[{"openapi":"get /runs","title":"Get a list of evaluation runs","href":"/api-reference/experiments/get-a-list-of-evaluation-runs"},{"openapi":"post /runs","title":"Create a new evaluation run","href":"/api-reference/experiments/create-a-new-evaluation-run"},{"openapi":"get /runs/{run_id}","title":"Get details of an evaluation run","href":"/api-reference/experiments/get-details-of-an-evaluation-run"},{"openapi":"put /runs/{run_id}","title":"Update an evaluation run","href":"/api-reference/experiments/update-an-evaluation-run"},{"openapi":"delete /runs/{run_id}","title":"Delete an evaluation run","href":"/api-reference/experiments/delete-an-evaluation-run"},{"openapi":"get /runs/{run_id}/result","title":null,"href":"/api-reference/experiments/retrieve-experiment-result"},{"openapi":"get /runs/{run_id_1}/compare-with/{run_id_2}","title":null,"href":"/api-reference/experiments/retrieve-experiment-comparison"}]}]},{"tab":"Integrations","pages":[{"title":"Integrations","href":"/integrations/langchain"}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog/changelog"}]}]}]},"basePath":"","title":"Update an existing metric - HoneyHive AI Docs","buildId":"dpl_42LwxxU1kGN114H4XzwGYXa9ZDah","deploymentId":"dpl_42LwxxU1kGN114H4XzwGYXa9ZDah","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-C-hEh3I2.js","utils-CnF4QiUD.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-C7PVNbel.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-8ytevL2A.js","snippetPresets-BT1alx3v.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-BLXC0i_W.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-CyLIGI9_.js","shallow-DC0lGVIW.js","getApiPlaygroundDisplay-CgDQ85tN.js","CodeSnippet-6-I-Gpv9.js","CodeSnippets-BAk1kDdu.js","Page-C945cI-W.js","getPastedJson-B276RuWN.js","icon-BqP8etTm.js","MethodPill-DM6sbxG1.js","DuplicateIcon-PyJglOaE.js","createIcon-CMeOMAc_.js","DynamicMarkdown-BoyYAA8K.js","SectionHeading-DAYv3gvZ.js","axios-vUo_bRtp.js","Markdown-BhTTmazV.js","clsx-CR-RHrVC.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CBUH0-zX.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-BmARFYNC.js"]}