Snapshot the supplied metric definition as a new version. By default the version is created as a draft (deployed: false); set deploy_immediately: true to also make it the live version in the same transaction.
Metric definition snapshot accepted by POST /v1/metrics/{metric_id}/versions.
Five fields are optional and fall back to server-side defaults when omitted:
description → ""
return_type → "float"
enabled_in_prod → true for HUMAN metrics, false otherwise
{"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.4087","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":"v2/api-reference-autogen/metric-versions/create-a-new-metric-version","slug":"/v2/api-reference-autogen/metric-versions/create-a-new-metric-version","pageMetadata":{"title":"Create a new metric version","description":"Snapshot the supplied metric definition as a new version. By default the version is created as a draft (`deployed: false`); set `deploy_immediately: true` to also make it the live version in the same transaction.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/honeyhiveai/honeyhive-openapi/main/data_plane_openapi.yaml post /v1/metrics/{metric_id}/versions","href":"/v2/api-reference-autogen/metric-versions/create-a-new-metric-version","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"Snapshot the supplied metric definition as a new version. By default the version is created as a draft (\", _jsx(_components.code, {\n children: \"deployed: false\"\n }), \"); set \", _jsx(_components.code, {\n children: \"deploy_immediately: true\"\n }), \" to also make it the live version in the same transaction.\"]\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":{"title":"Create a new metric version","description":"Snapshot the supplied metric definition as a new version. By default the version is created as a draft (`deployed: false`); set `deploy_immediately: true` to also make it the live version in the same transaction.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/honeyhiveai/honeyhive-openapi/main/data_plane_openapi.yaml post /v1/metrics/{metric_id}/versions","href":"/v2/api-reference-autogen/metric-versions/create-a-new-metric-version","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/honeyhiveai/295d4d275d20dba2/leadfeeder.js"],"openApiReferenceData":{"operation":{"tags":["Metric Versions"],"operationId":"createMetricVersion","security":["098f6340-907a-4d07-b349-e01c11b6780c"],"x-cli-name":"create","x-ts-sdk-name":"create","summary":"Create a new metric version","description":"Snapshot the supplied metric definition as a new version. By default the version is created as a draft (`deployed: false`); set `deploy_immediately: true` to also make it the live version in the same transaction.","parameters":["be34496f-df6f-4514-b768-2b1f8c595ab2"],"requestBody":"fd8fd006-c7b9-49a4-9a43-9c5bbbac2990","responses":{"200":"8e599198-6e0b-466c-bde7-a028cd059c6b","400":"175c7375-d956-4c93-a6ed-035de3c1219a","404":"9802b930-615e-4e13-9b65-6fe523185cfb"},"method":"post","type":"path","servers":["89eb14c4-c321-4827-87b7-d1b27eeb02a5"],"path":"/v1/metrics/{metric_id}/versions","baseUrlOptions":["https://api.dp1.us.honeyhive.ai"],"title":"Create a new metric version","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"be34496f-df6f-4514-b768-2b1f8c595ab2":{"in":"path","name":"metric_id","required":true,"schema":{"type":"string","isRequired":true,"description":"The unique identifier of the metric to version","uniqueKey":"","typeLabel":"string"},"description":"The unique identifier of the metric to version"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"content":{"type":"object","properties":{"name":{"type":"string","maxLength":200,"isRequired":true,"uniqueKey":"content.name","typeLabel":"string"},"type":{"type":"string","enum":["PYTHON","LLM","HUMAN","COMPOSITE"],"isRequired":true,"uniqueKey":"content.type","typeLabel":"enum\u003cstring>"},"criteria":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"content.criteria","typeLabel":"string"},"description":{"type":"string","default":"","description":"Free-form description of the metric. Defaults to an empty string.","uniqueKey":"content.description","typeLabel":"string"},"return_type":{"type":"string","enum":["float","boolean","string","categorical"],"default":"float","description":"Return type of the metric. Defaults to `float`.","uniqueKey":"content.return_type","typeLabel":"enum\u003cstring>"},"enabled_in_prod":{"type":"boolean","default":false,"description":"Whether this version should run against production traffic. Defaults to `false` for non-HUMAN metrics and `true` for HUMAN metrics.","uniqueKey":"content.enabled_in_prod","typeLabel":"boolean"},"sampling_percentage":{"type":"number","minimum":0,"maximum":100,"default":10,"description":"Percentage of events the metric should run against, 0–100. Defaults to `10`.","uniqueKey":"content.sampling_percentage","typeLabel":"number"},"model_provider":{"oneOf":[{"type":"string","uniqueKey":"content.model_provider.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"content.model_provider.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.model_provider","typeLabel":"string | null"},"model_name":{"oneOf":[{"type":"string","uniqueKey":"content.model_name.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"content.model_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.model_name","typeLabel":"string | null"},"scale":{"oneOf":[{"type":"integer","exclusiveMinimum":0,"uniqueKey":"content.scale.oneOf.0","typeLabel":"integer"},{"type":"null","exclusiveMinimum":0,"uniqueKey":"content.scale.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.scale","typeLabel":"integer | null"},"threshold":{"oneOf":[{"type":"object","properties":{"min":{"type":"number","uniqueKey":"content.threshold.oneOf.0.min","typeLabel":"number"},"max":{"type":"number","uniqueKey":"content.threshold.oneOf.0.max","typeLabel":"number"},"pass_when":{"oneOf":[{"type":"boolean","uniqueKey":"content.threshold.oneOf.0.pass_when.oneOf.0","typeLabel":"boolean"},{"type":"number","uniqueKey":"content.threshold.oneOf.0.pass_when.oneOf.1","typeLabel":"number"}],"uniqueKey":"content.threshold.oneOf.0.pass_when","typeLabel":"boolean | number"},"passing_categories":{"type":"array","items":{"type":"string","maxLength":200,"uniqueKey":"content.threshold.oneOf.0.passing_categories.items.[INDEX]","typeLabel":"string"},"minItems":1,"uniqueKey":"content.threshold.oneOf.0.passing_categories","typeLabel":"string[]"}},"additionalProperties":false,"uniqueKey":"content.threshold.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"min":{"type":"number"},"max":{"type":"number"},"pass_when":{"oneOf":[{"type":"boolean"},{"type":"number"}]},"passing_categories":{"type":"array","items":{"type":"string","maxLength":200},"minItems":1}},"additionalProperties":false,"uniqueKey":"content.threshold.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.threshold","typeLabel":"object | null"},"categories":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"category":{"type":"string","maxLength":200,"isRequired":true,"uniqueKey":"content.categories.oneOf.0.items.[INDEX].category","typeLabel":"string"},"score":{"oneOf":[{"type":"number","isRequired":true,"uniqueKey":"content.categories.oneOf.0.items.[INDEX].score.oneOf.0","typeLabel":"number"},{"type":"null","isRequired":true,"uniqueKey":"content.categories.oneOf.0.items.[INDEX].score.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"content.categories.oneOf.0.items.[INDEX].score","typeLabel":"number | null"}},"required":["category","score"],"additionalProperties":false,"uniqueKey":"content.categories.oneOf.0.items.[INDEX]","typeLabel":"object"},"minItems":1,"uniqueKey":"content.categories.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","properties":{"category":{"type":"string","maxLength":200},"score":{"oneOf":[{"type":"number"},{"type":"null"}]}},"required":["category","score"],"additionalProperties":false},"minItems":1,"uniqueKey":"content.categories.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.categories","typeLabel":"object[] | null"},"needs_ground_truth":{"type":"boolean","description":"Deprecated and ignored. Ground-truth use is inferred from the evaluator definition.","deprecated":true,"uniqueKey":"content.needs_ground_truth","typeLabel":"boolean"},"child_metrics":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200,"isRequired":true,"uniqueKey":"content.child_metrics.oneOf.0.items.[INDEX].name","typeLabel":"string"},"weight":{"type":"number","isRequired":true,"uniqueKey":"content.child_metrics.oneOf.0.items.[INDEX].weight","typeLabel":"number"},"id":{"type":"string","minLength":1,"uniqueKey":"content.child_metrics.oneOf.0.items.[INDEX].id","typeLabel":"string"},"scale":{"oneOf":[{"type":"integer","exclusiveMinimum":0,"uniqueKey":"content.child_metrics.oneOf.0.items.[INDEX].scale.oneOf.0","typeLabel":"integer"},{"type":"null","exclusiveMinimum":0,"uniqueKey":"content.child_metrics.oneOf.0.items.[INDEX].scale.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.child_metrics.oneOf.0.items.[INDEX].scale","typeLabel":"integer | null"}},"required":["name","weight"],"additionalProperties":false,"uniqueKey":"content.child_metrics.oneOf.0.items.[INDEX]","typeLabel":"object"},"minItems":1,"description":"Deprecated and ignored. Composite metrics are no longer supported.","deprecated":true,"uniqueKey":"content.child_metrics.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","properties":{"id":{"type":"string","minLength":1},"name":{"type":"string","maxLength":200},"weight":{"type":"number"},"scale":{"oneOf":[{"type":"integer","exclusiveMinimum":0},{"type":"null","exclusiveMinimum":0}]}},"required":["name","weight"],"additionalProperties":false},"minItems":1,"description":"Deprecated and ignored. Composite metrics are no longer supported.","deprecated":true,"uniqueKey":"content.child_metrics.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.child_metrics","typeLabel":"object[] | null"},"filters":{"type":"object","properties":{"filterArray":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string","isRequired":true,"uniqueKey":"content.filters.filterArray.items.[INDEX].field","typeLabel":"string"},"operator":{"type":"string","enum":["exists","not exists","is","is not","contains","not contains","greater than","less than","after","before"],"isRequired":true,"uniqueKey":"content.filters.filterArray.items.[INDEX].operator","typeLabel":"enum\u003cstring>"},"value":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"content.filters.filterArray.items.[INDEX].value.oneOf.0","typeLabel":"string"},{"type":"number","isRequired":true,"uniqueKey":"content.filters.filterArray.items.[INDEX].value.oneOf.1","typeLabel":"number"},{"type":"boolean","isRequired":true,"uniqueKey":"content.filters.filterArray.items.[INDEX].value.oneOf.2","typeLabel":"boolean"},{"type":"null","isRequired":true,"uniqueKey":"content.filters.filterArray.items.[INDEX].value.oneOf.3","typeLabel":"null"}],"isRequired":true,"uniqueKey":"content.filters.filterArray.items.[INDEX].value","typeLabel":"string | number | boolean | null"},"type":{"type":"string","enum":["string","number","boolean","datetime"],"isRequired":true,"uniqueKey":"content.filters.filterArray.items.[INDEX].type","typeLabel":"enum\u003cstring>"}},"required":["field","operator","value","type"],"uniqueKey":"content.filters.filterArray.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"content.filters.filterArray","typeLabel":"object[]"}},"default":{"filterArray":[]},"required":["filterArray"],"additionalProperties":false,"description":"ETL filter narrowing which events this metric applies to. Defaults to `{ filterArray: [] }` (no filtering).","uniqueKey":"content.filters","typeLabel":"object"}},"required":["name","type","criteria"],"additionalProperties":false,"description":"Metric definition snapshot accepted by POST /v1/metrics/{metric_id}/versions.\nFive fields are optional and fall back to server-side defaults when omitted:\n- `description` → `\"\"`\n- `return_type` → `\"float\"`\n- `enabled_in_prod` → `true` for HUMAN metrics, `false` otherwise\n- `sampling_percentage` → `10`\n- `filters` → `{ \"filterArray\": [] }`","isRequired":true,"uniqueKey":"content","typeLabel":"object"},"deploy_immediately":{"type":"boolean","uniqueKey":"deploy_immediately","typeLabel":"boolean"}},"required":["message","content"],"additionalProperties":false,"description":"Request body for POST /v1/metrics/{metric_id}/versions","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"\u003cstring>","content":{"name":"\u003cstring>","criteria":"\u003cstring>","description":"","return_type":"float","enabled_in_prod":false,"sampling_percentage":10,"model_provider":"\u003cstring>","model_name":"\u003cstring>","scale":123,"threshold":{"min":123,"max":123,"pass_when":true,"passing_categories":["\u003cstring>"]},"categories":[{"category":"\u003cstring>","score":123}],"needs_ground_truth":true,"child_metrics":[{"name":"\u003cstring>","weight":123,"id":"\u003cstring>","scale":123}],"filters":{"filterArray":[]}},"deploy_immediately":true}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"8e599198-6e0b-466c-bde7-a028cd059c6b":{"description":"Metric version created successfully","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[true],"isRequired":true,"uniqueKey":"success","typeLabel":"enum\u003cboolean>"},"data":{"type":"object","properties":{"name":{"type":"string","isRequired":true,"uniqueKey":"data.name","typeLabel":"string"},"full_sha":{"type":"string","isRequired":true,"uniqueKey":"data.full_sha","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"data.message","typeLabel":"string"},"date":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"data.date","typeLabel":"string\u003cdate-time>"},"deployed":{"type":"boolean","isRequired":true,"uniqueKey":"data.deployed","typeLabel":"boolean"},"content":{"type":"object","properties":{"name":{"type":"string","maxLength":200,"isRequired":true,"uniqueKey":"data.content.name","typeLabel":"string"},"type":{"type":"string","enum":["PYTHON","LLM","HUMAN","COMPOSITE"],"isRequired":true,"uniqueKey":"data.content.type","typeLabel":"enum\u003cstring>"},"criteria":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"data.content.criteria","typeLabel":"string"},"description":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"data.content.description.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"data.content.description.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.content.description","typeLabel":"string | null"},"return_type":{"type":"string","enum":["float","boolean","string","categorical"],"isRequired":true,"uniqueKey":"data.content.return_type","typeLabel":"enum\u003cstring>"},"enabled_in_prod":{"type":"boolean","isRequired":true,"uniqueKey":"data.content.enabled_in_prod","typeLabel":"boolean"},"sampling_percentage":{"type":"number","minimum":0,"maximum":100,"isRequired":true,"uniqueKey":"data.content.sampling_percentage","typeLabel":"number"},"needs_ground_truth":{"type":"boolean","description":"Deprecated and ignored. Ground-truth use is inferred from the evaluator definition.","deprecated":true,"isRequired":true,"uniqueKey":"data.content.needs_ground_truth","typeLabel":"boolean"},"filters":{"type":"object","properties":{"filterArray":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string","isRequired":true,"uniqueKey":"data.content.filters.filterArray.items.[INDEX].field","typeLabel":"string"},"operator":{"type":"string","enum":["exists","not exists","is","is not","contains","not contains","greater than","less than","after","before"],"isRequired":true,"uniqueKey":"data.content.filters.filterArray.items.[INDEX].operator","typeLabel":"enum\u003cstring>"},"value":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"data.content.filters.filterArray.items.[INDEX].value.oneOf.0","typeLabel":"string"},{"type":"number","isRequired":true,"uniqueKey":"data.content.filters.filterArray.items.[INDEX].value.oneOf.1","typeLabel":"number"},{"type":"boolean","isRequired":true,"uniqueKey":"data.content.filters.filterArray.items.[INDEX].value.oneOf.2","typeLabel":"boolean"},{"type":"null","isRequired":true,"uniqueKey":"data.content.filters.filterArray.items.[INDEX].value.oneOf.3","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.content.filters.filterArray.items.[INDEX].value","typeLabel":"string | number | boolean | null"},"type":{"type":"string","enum":["string","number","boolean","datetime"],"isRequired":true,"uniqueKey":"data.content.filters.filterArray.items.[INDEX].type","typeLabel":"enum\u003cstring>"}},"required":["field","operator","value","type"],"uniqueKey":"data.content.filters.filterArray.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"data.content.filters.filterArray","typeLabel":"object[]"}},"required":["filterArray"],"additionalProperties":false,"isRequired":true,"uniqueKey":"data.content.filters","typeLabel":"object"},"model_provider":{"oneOf":[{"type":"string","uniqueKey":"data.content.model_provider.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.content.model_provider.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.content.model_provider","typeLabel":"string | null"},"model_name":{"oneOf":[{"type":"string","uniqueKey":"data.content.model_name.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.content.model_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.content.model_name","typeLabel":"string | null"},"scale":{"oneOf":[{"type":"integer","exclusiveMinimum":0,"uniqueKey":"data.content.scale.oneOf.0","typeLabel":"integer"},{"type":"null","exclusiveMinimum":0,"uniqueKey":"data.content.scale.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.content.scale","typeLabel":"integer | null"},"threshold":{"oneOf":[{"type":"object","properties":{"min":{"type":"number","uniqueKey":"data.content.threshold.oneOf.0.min","typeLabel":"number"},"max":{"type":"number","uniqueKey":"data.content.threshold.oneOf.0.max","typeLabel":"number"},"pass_when":{"oneOf":[{"type":"boolean","uniqueKey":"data.content.threshold.oneOf.0.pass_when.oneOf.0","typeLabel":"boolean"},{"type":"number","uniqueKey":"data.content.threshold.oneOf.0.pass_when.oneOf.1","typeLabel":"number"}],"uniqueKey":"data.content.threshold.oneOf.0.pass_when","typeLabel":"boolean | number"},"passing_categories":{"type":"array","items":{"type":"string","maxLength":200,"uniqueKey":"data.content.threshold.oneOf.0.passing_categories.items.[INDEX]","typeLabel":"string"},"minItems":1,"uniqueKey":"data.content.threshold.oneOf.0.passing_categories","typeLabel":"string[]"}},"additionalProperties":false,"uniqueKey":"data.content.threshold.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"min":{"type":"number"},"max":{"type":"number"},"pass_when":{"oneOf":[{"type":"boolean"},{"type":"number"}]},"passing_categories":{"type":"array","items":{"type":"string","maxLength":200},"minItems":1}},"additionalProperties":false,"uniqueKey":"data.content.threshold.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.content.threshold","typeLabel":"object | null"},"categories":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"category":{"type":"string","maxLength":200,"isRequired":true,"uniqueKey":"data.content.categories.oneOf.0.items.[INDEX].category","typeLabel":"string"},"score":{"oneOf":[{"type":"number","isRequired":true,"uniqueKey":"data.content.categories.oneOf.0.items.[INDEX].score.oneOf.0","typeLabel":"number"},{"type":"null","isRequired":true,"uniqueKey":"data.content.categories.oneOf.0.items.[INDEX].score.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.content.categories.oneOf.0.items.[INDEX].score","typeLabel":"number | null"}},"required":["category","score"],"additionalProperties":false,"uniqueKey":"data.content.categories.oneOf.0.items.[INDEX]","typeLabel":"object"},"minItems":1,"uniqueKey":"data.content.categories.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","properties":{"category":{"type":"string","maxLength":200},"score":{"oneOf":[{"type":"number"},{"type":"null"}]}},"required":["category","score"],"additionalProperties":false},"minItems":1,"uniqueKey":"data.content.categories.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.content.categories","typeLabel":"object[] | null"},"child_metrics":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":200,"isRequired":true,"uniqueKey":"data.content.child_metrics.oneOf.0.items.[INDEX].name","typeLabel":"string"},"weight":{"type":"number","isRequired":true,"uniqueKey":"data.content.child_metrics.oneOf.0.items.[INDEX].weight","typeLabel":"number"},"id":{"type":"string","minLength":1,"uniqueKey":"data.content.child_metrics.oneOf.0.items.[INDEX].id","typeLabel":"string"},"scale":{"oneOf":[{"type":"integer","exclusiveMinimum":0,"uniqueKey":"data.content.child_metrics.oneOf.0.items.[INDEX].scale.oneOf.0","typeLabel":"integer"},{"type":"null","exclusiveMinimum":0,"uniqueKey":"data.content.child_metrics.oneOf.0.items.[INDEX].scale.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.content.child_metrics.oneOf.0.items.[INDEX].scale","typeLabel":"integer | null"}},"required":["name","weight"],"additionalProperties":false,"uniqueKey":"data.content.child_metrics.oneOf.0.items.[INDEX]","typeLabel":"object"},"minItems":1,"description":"Deprecated and ignored. Composite metrics are no longer supported.","deprecated":true,"uniqueKey":"data.content.child_metrics.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","properties":{"id":{"type":"string","minLength":1},"name":{"type":"string","maxLength":200},"weight":{"type":"number"},"scale":{"oneOf":[{"type":"integer","exclusiveMinimum":0},{"type":"null","exclusiveMinimum":0}]}},"required":["name","weight"],"additionalProperties":false},"minItems":1,"description":"Deprecated and ignored. Composite metrics are no longer supported.","deprecated":true,"uniqueKey":"data.content.child_metrics.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.content.child_metrics","typeLabel":"object[] | null"}},"required":["name","type","criteria","description","return_type","enabled_in_prod","sampling_percentage","needs_ground_truth","filters"],"additionalProperties":false,"description":"Versioned snapshot of a metric definition.","isRequired":true,"uniqueKey":"data.content","typeLabel":"object"}},"required":["name","full_sha","message","date","deployed","content"],"additionalProperties":false,"description":"A versioned snapshot of a metric definition.","isRequired":true,"uniqueKey":"data","typeLabel":"object"}},"required":["success","data"],"additionalProperties":false,"description":"Response for POST /v1/metrics/{metric_id}/versions","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":true,"data":{"name":"\u003cstring>","full_sha":"\u003cstring>","message":"\u003cstring>","date":"2023-11-07T05:31:56Z","deployed":true,"content":{"name":"\u003cstring>","type":"PYTHON","criteria":"\u003cstring>","description":"\u003cstring>","return_type":"float","enabled_in_prod":true,"sampling_percentage":50,"needs_ground_truth":true,"filters":{"filterArray":[{"field":"\u003cstring>","operator":"exists","value":"\u003cstring>","type":"string"}]},"model_provider":"\u003cstring>","model_name":"\u003cstring>","scale":123,"threshold":{"min":123,"max":123,"pass_when":true,"passing_categories":["\u003cstring>"]},"categories":[{"category":"\u003cstring>","score":123}],"child_metrics":[{"name":"\u003cstring>","weight":123,"id":"\u003cstring>","scale":123}]}}}}},"exampleType":"generated"}},"exampleType":"generated"},"175c7375-d956-4c93-a6ed-035de3c1219a":{"description":"Invalid `content` payload. Fails cross-field validation (e.g. an `LLM` metric without `model_provider`/`model_name`).","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"9802b930-615e-4e13-9b65-6fe523185cfb":{"description":"No metric with the given `metric_id` exists in the caller's scope.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}}},"security":{"098f6340-907a-4d07-b349-e01c11b6780c":{"BearerAuth":{"type":"http","scheme":"bearer","scopes":[],"schemeName":"BearerAuth"}}},"servers":{"89eb14c4-c321-4827-87b7-d1b27eeb02a5":{"url":"https://api.dp1.us.honeyhive.ai"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","scopes":[],"schemeName":"BearerAuth"},"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":"https://raw.githubusercontent.com/honeyhiveai/honeyhive-openapi/main/data_plane_openapi.yaml"},"subdomain":"honeyhiveai","siteName":"HoneyHive AI Docs","title":"Create a new metric version - HoneyHive AI Docs","relatedPagesConfig":{"enabled":true,"limit":3,"mode":"automatic"},"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-02T17:09:26.662Z","originalFileLocation":"v2/api-reference-autogen/metric-versions/create-a-new-metric-version.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=\"Snapshot the supplied metric definition as a new version. By default the version is created as a draft (deployed: false); set deploy_immediately: true to also make it the live version in the same transaction.\">\u003cmeta data-mint-head name=\"application-name\" content=\"HoneyHive AI Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\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=\"Create a new metric version - HoneyHive AI Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Snapshot the supplied metric definition as a new version. By default the version is created as a draft (deployed: false); set deploy_immediately: true to also make it the live version in the same transaction.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"HoneyHive AI Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.honeyhive.ai/v2/api-reference-autogen/metric-versions/create-a-new-metric-version\">\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=Metric+Versions\u0026amp;title=Create+a+new+metric+version\u0026amp;description=Snapshot+the+supplied+metric+definition+as+a+new+version.+By+default+the+version+is+created+as+a+draft+%28%60deployed%3A+false%60%29%3B+set+%60deploy_immediately%3A+true%60+to+al\u0026amp;theme=0dac4d98fc38691c224052c2\u0026amp;signature=e81eb18510766d39f0f4ae50adf03cf0457de0470d41beeb2705c6f0b9f7b2a7\">\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=\"Create a new metric version - HoneyHive AI Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Snapshot the supplied metric definition as a new version. By default the version is created as a draft (deployed: false); set deploy_immediately: true to also make it the live version in the same transaction.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://honeyhiveai.mintlify.site/_mintlify/api/og/v2?division=Metric+Versions\u0026amp;title=Create+a+new+metric+version\u0026amp;description=Snapshot+the+supplied+metric+definition+as+a+new+version.+By+default+the+version+is+created+as+a+draft+%28%60deployed%3A+false%60%29%3B+set+%60deploy_immediately%3A+true%60+to+al\u0026amp;theme=0dac4d98fc38691c224052c2\u0026amp;signature=e81eb18510766d39f0f4ae50adf03cf0457de0470d41beeb2705c6f0b9f7b2a7\">\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/v2/api-reference-autogen/metric-versions/create-a-new-metric-version\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/v2/api-reference-autogen/metric-versions/create-a-new-metric-version.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.honeyhive.ai/#organization\",\"name\":\"HoneyHive AI Docs\",\"url\":\"https://docs.honeyhive.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/honeyhiveai/lWy7JAPdMsmL06l1/logo/light.svg?fit=max\u0026auto=format\u0026n=lWy7JAPdMsmL06l1\u0026q=85\u0026s=419c99bb22ce1e89ae8fb4a87c589528\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.honeyhive.ai#website\",\"name\":\"HoneyHive AI Docs\",\"url\":\"https://docs.honeyhive.ai\",\"publisher\":{\"@id\":\"https://docs.honeyhive.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.honeyhive.ai/v2/api-reference-autogen/metric-versions/create-a-new-metric-version#webpage\",\"url\":\"https://docs.honeyhive.ai/v2/api-reference-autogen/metric-versions/create-a-new-metric-version\",\"name\":\"Create a new metric version\",\"description\":\"Snapshot the supplied metric definition as a new version. By default the version is created as a draft (deployed: false); set deploy_immediately: true to also make it the live version in the same transaction.\",\"dateModified\":\"2026-11-02T17:09:26.662Z\",\"isPartOf\":{\"@id\":\"https://docs.honeyhive.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.honeyhive.ai/v2/api-reference-autogen/metric-versions/create-a-new-metric-version#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.honeyhive.ai/v2/api-reference-autogen/metric-versions/create-a-new-metric-version#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Data Plane API\",\"item\":\"https://docs.honeyhive.ai/v2/api-reference-autogen/sessions/start-a-new-session\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Metric Versions\",\"item\":\"https://docs.honeyhive.ai/v2/api-reference-autogen/metric-versions/list-versions-for-a-metric\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Create a new metric version\",\"item\":\"https://docs.honeyhive.ai/v2/api-reference-autogen/metric-versions/create-a-new-metric-version\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.honeyhive.ai/v2/api-reference-autogen/metric-versions/create-a-new-metric-version#apireference\",\"headline\":\"Create a new metric version\",\"name\":\"Create a new metric version\",\"description\":\"Snapshot the supplied metric definition as a new version. By default the version is created as a draft (deployed: false); set deploy_immediately: true to also make it the live version in the same transaction.\",\"url\":\"https://docs.honeyhive.ai/v2/api-reference-autogen/metric-versions/create-a-new-metric-version\",\"mainEntityOfPage\":{\"@id\":\"https://docs.honeyhive.ai/v2/api-reference-autogen/metric-versions/create-a-new-metric-version#webpage\"},\"dateModified\":\"2026-11-02T17:09:26.662Z\",\"publisher\":{\"@id\":\"https://docs.honeyhive.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.honeyhive.ai#website\"}}]}\u003c/script>\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.","tabs":[{"tab":"Documentation","icon":"book-open","pages":[{"title":"Documentation","href":"/v2/introduction/what-is-hhai"}]},{"tab":"SDK Reference","icon":"layer-group","pages":[{"title":"SDK Reference","href":"/v2/sdk-reference/overview"}]},{"tab":"CLI Reference","icon":"terminal","pages":[{"title":"CLI Reference","href":"/v2/cli-reference/getting-started"}]},{"tab":"API Reference","icon":"code","groups":[{"group":"Data Plane API","pages":[{"group":"Sessions","pages":[{"title":"Start a new session","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/honeyhiveai/honeyhive-openapi/main/data_plane_openapi.yaml post /v1/sessions","href":"/v2/api-reference-autogen/sessions/start-a-new-session"},{"title":"Add a batch of events to a session","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/honeyhiveai/honeyhive-openapi/main/data_plane_openapi.yaml post /v1/sessions/{session_id}/events/batch","href":"/v2/api-reference-autogen/sessions/add-a-batch-of-events-to-a-session"}]},{"group":"Events","pages":[{"title":"Create a new event","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/honeyhiveai/honeyhive-openapi/main/data_plane_openapi.yaml post /v1/events","href":"/v2/api-reference-autogen/events/create-a-new-event"},{"title":"Update an event","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/honeyhiveai/honeyhive-openapi/main/data_plane_openapi.yaml put /v1/events/{event_id}","href":"/v2/api-reference-autogen/events/update-an-event"},{"title":"Get an event by ID","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/honeyhiveai/honeyhive-openapi/main/data_plane_openapi.yaml get /v1/projects/{project_id}/events/{event_id}","href":"/v2/api-reference-autogen/events/get-an-event-by-id"},{"title":"Retrieve events based on filters","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/honeyhiveai/honeyhive-openapi/main/data_plane_openapi.yaml post /v1/projects/{project_id}/events/search","href":"/v2/api-reference-autogen/events/retrieve-events-based-on-filters"},{"title":"Create a batch of events","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/honeyhiveai/honeyhive-openapi/main/data_plane_openapi.yaml post /v1/events/batch","href":"/v2/api-reference-autogen/events/create-a-batch-of-events"}]},{"group":"Charts","pages":[{"title":"List charts","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/honeyhiveai/honeyhive-openapi/main/data_plane_openapi.yaml get /v1/projects/{project_id}/charts","href":"/v2/api-reference-autogen/charts/list-charts"},{"title":"Create a new chart","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/honeyhiveai/honeyhive-openapi/main/data_plane_openapi.yaml post /v1/projects/{project_id}/charts","href":"/v2/api-reference-autogen/charts/create-a-new-chart"},{"title":"Run a chart query","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/honeyhiveai/honeyhive-openapi/main/data_plane_openapi.yaml post /v1/projects/{project_id}/charts/query","href":"/v2/api-reference-autogen/charts/run-a-chart-query"},{"title":"Get a chart","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/honeyhiveai/honeyhive-openapi/main/data_plane_openapi.yaml get /v1/projects/{project_id}/charts/{chart_id}","href":"/v2/api-reference-autogen/charts/get-a-chart"},{"title":"Delete a chart","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/honeyhiveai/honeyhive-openapi/main/data_plane_openapi.yaml delete /v1/projects/{project_id}/charts/{chart_id}","href":"/v2/api-reference-autogen/charts/delete-a-chart"},{"title":"Update a chart","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/honeyhiveai/honeyhive-openapi/main/data_plane_openapi.yaml patch /v1/projects/{project_id}/charts/{chart_id}","href":"/v2/api-reference-autogen/charts/update-a-chart"}]},{"group":"Data Plane Api Keys","pages":[{"title":"Create a data plane API key","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/honeyhiveai/honeyhive-openapi/main/data_plane_openapi.yaml post /v1/projects/{project_id}/fine_grained_api_keys","href":"/v2/api-reference-autogen/data-plane-api-keys/create-a-data-plane-api-key"}]},{"group":"Ingestion Api Keys","pages":[{"title":"Create an ingestion API key","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/honeyhiveai/honeyhive-openapi/main/data_plane_openapi.yaml post /v1/projects/{project_id}/ingestion_api_keys","href":"/v2/api-reference-autogen/ingestion-api-keys/create-an-ingestion-api-key"}]},{"group":"Metrics","pages":[{"title":"List all metrics","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/honeyhiveai/honeyhive-openapi/main/data_plane_openapi.yaml get /v1/metrics","href":"/v2/api-reference-autogen/metrics/list-all-metrics"},{"title":"Create a new metric","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/honeyhiveai/honeyhive-openapi/main/data_plane_openapi.yaml post /v1/metrics","href":"/v2/api-reference-autogen/metrics/create-a-new-metric"},{"title":"Update an existing metric","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/honeyhiveai/honeyhive-openapi/main/data_plane_openapi.yaml put /v1/metrics/{metric_id}","href":"/v2/api-reference-autogen/metrics/update-an-existing-metric"},{"title":"Delete a metric","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/honeyhiveai/honeyhive-openapi/main/data_plane_openapi.yaml delete /v1/metrics/{metric_id}","href":"/v2/api-reference-autogen/metrics/delete-a-metric"},{"title":"Run a metric evaluation","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/honeyhiveai/honeyhive-openapi/main/data_plane_openapi.yaml post /v1/metrics/run","href":"/v2/api-reference-autogen/metrics/run-a-metric-evaluation"}]},{"group":"Metric Versions","pages":[{"title":"List versions for a metric","description":"Retrieve all snapshot versions of the metric's definition, ordered oldest-first. Returns the full version history unpaginated.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/honeyhiveai/honeyhive-openapi/main/data_plane_openapi.yaml get /v1/metrics/{metric_id}/versions","href":"/v2/api-reference-autogen/metric-versions/list-versions-for-a-metric"},{"title":"Create a new metric version","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/honeyhiveai/honeyhive-openapi/main/data_plane_openapi.yaml post /v1/metrics/{metric_id}/versions","href":"/v2/api-reference-autogen/metric-versions/create-a-new-metric-version"},{"title":"Deploy a specific metric version","description":"Mark the named version as the live version for the metric, unmarking any previously deployed version.","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/honeyhiveai/honeyhive-openapi/main/data_plane_openapi.yaml post /v1/metrics/{metric_id}/versions/{version_name}/deploy","href":"/v2/api-reference-autogen/metric-versions/deploy-a-specific-metric-version"}]},{"group":"Datapoints","pages":[{"title":"Retrieve a list of datapoints","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/honeyhiveai/honeyhive-openapi/main/data_plane_openapi.yaml get /v1/projects/{project_id}/datapoints","href":"/v2/api-reference-autogen/datapoints/retrieve-a-list-of-datapoints"},{"title":"Create a new datapoint","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/honeyhiveai/honeyhive-openapi/main/data_plane_openapi.yaml post /v1/projects/{project_id}/datapoints","href":"/v2/api-reference-autogen/datapoints/create-a-new-datapoint"},{"title":"Create multiple datapoints in batch","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/honeyhiveai/honeyhive-openapi/main/data_plane_openapi.yaml post /v1/projects/{project_id}/datapoints/batch","href":"/v2/api-reference-autogen/datapoints/create-multiple-datapoints-in-batch"},{"title":"Retrieve a specific datapoint","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/honeyhiveai/honeyhive-openapi/main/data_plane_openapi.yaml get /v1/projects/{project_id}/datapoints/{datapoint_id}","href":"/v2/api-reference-autogen/datapoints/retrieve-a-specific-datapoint"},{"title":"Delete a specific datapoint","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/honeyhiveai/honeyhive-openapi/main/data_plane_openapi.yaml delete /v1/projects/{project_id}/datapoints/{datapoint_id}","href":"/v2/api-reference-autogen/datapoints/delete-a-specific-datapoint"},{"title":"Update a specific datapoint","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/honeyhiveai/honeyhive-openapi/main/data_plane_openapi.yaml patch /v1/projects/{project_id}/datapoints/{datapoint_id}","href":"/v2/api-reference-autogen/datapoints/update-a-specific-datapoint"}]},{"group":"Datasets","pages":[{"title":"Get datasets","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/honeyhiveai/honeyhive-openapi/main/data_plane_openapi.yaml get /v1/projects/{project_id}/datasets","href":"/v2/api-reference-autogen/datasets/get-datasets"},{"title":"Create a dataset","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/honeyhiveai/honeyhive-openapi/main/data_plane_openapi.yaml post /v1/projects/{project_id}/datasets","href":"/v2/api-reference-autogen/datasets/create-a-dataset"},{"title":"Delete a dataset","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/honeyhiveai/honeyhive-openapi/main/data_plane_openapi.yaml delete /v1/projects/{project_id}/datasets/{dataset_id}","href":"/v2/api-reference-autogen/datasets/delete-a-dataset"},{"title":"Update a dataset","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/honeyhiveai/honeyhive-openapi/main/data_plane_openapi.yaml patch /v1/projects/{project_id}/datasets/{dataset_id}","href":"/v2/api-reference-autogen/datasets/update-a-dataset"},{"title":"Add datapoints to a dataset","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/honeyhiveai/honeyhive-openapi/main/data_plane_openapi.yaml post /v1/projects/{project_id}/datasets/{dataset_id}/datapoints","href":"/v2/api-reference-autogen/datasets/add-datapoints-to-a-dataset"},{"title":"Remove a datapoint from a dataset","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/honeyhiveai/honeyhive-openapi/main/data_plane_openapi.yaml delete /v1/projects/{project_id}/datasets/{dataset_id}/datapoints/{datapoint_id}","href":"/v2/api-reference-autogen/datasets/remove-a-datapoint-from-a-dataset"}]},{"group":"Experiments","pages":[{"title":"Retrieve experiment comparison","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/honeyhiveai/honeyhive-openapi/main/data_plane_openapi.yaml get /v1/projects/{project_id}/runs/{new_run_id}/compare/{old_run_id}","href":"/v2/api-reference-autogen/experiments/retrieve-experiment-comparison"},{"title":"Get a list of evaluation runs","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/honeyhiveai/honeyhive-openapi/main/data_plane_openapi.yaml get /v1/projects/{project_id}/runs","href":"/v2/api-reference-autogen/experiments/get-a-list-of-evaluation-runs"},{"title":"Create a new evaluation run","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/honeyhiveai/honeyhive-openapi/main/data_plane_openapi.yaml post /v1/projects/{project_id}/runs","href":"/v2/api-reference-autogen/experiments/create-a-new-evaluation-run"},{"title":"Get events schema across all experiment runs in a project","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/honeyhiveai/honeyhive-openapi/main/data_plane_openapi.yaml get /v1/projects/{project_id}/runs/schema","href":"/v2/api-reference-autogen/experiments/get-events-schema-across-all-experiment-runs-in-a-project"},{"title":"Get details of an evaluation run","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/honeyhiveai/honeyhive-openapi/main/data_plane_openapi.yaml get /v1/projects/{project_id}/runs/{run_id}","href":"/v2/api-reference-autogen/experiments/get-details-of-an-evaluation-run"},{"title":"Delete an evaluation run","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/honeyhiveai/honeyhive-openapi/main/data_plane_openapi.yaml delete /v1/projects/{project_id}/runs/{run_id}","href":"/v2/api-reference-autogen/experiments/delete-an-evaluation-run"},{"title":"Update an evaluation run","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/honeyhiveai/honeyhive-openapi/main/data_plane_openapi.yaml patch /v1/projects/{project_id}/runs/{run_id}","href":"/v2/api-reference-autogen/experiments/update-an-evaluation-run"},{"title":"Get events schema for a single experiment run","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/honeyhiveai/honeyhive-openapi/main/data_plane_openapi.yaml get /v1/projects/{project_id}/runs/{run_id}/schema","href":"/v2/api-reference-autogen/experiments/get-events-schema-for-a-single-experiment-run"},{"title":"Retrieve experiment summary","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/honeyhiveai/honeyhive-openapi/main/data_plane_openapi.yaml get /v1/projects/{project_id}/runs/{run_id}/summary","href":"/v2/api-reference-autogen/experiments/retrieve-experiment-summary"},{"title":"Get event metrics for an experiment run","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/honeyhiveai/honeyhive-openapi/main/data_plane_openapi.yaml get /v1/projects/{project_id}/runs/{run_id}/metrics","href":"/v2/api-reference-autogen/experiments/get-event-metrics-for-an-experiment-run"},{"title":"Compare events between two experiment runs","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/honeyhiveai/honeyhive-openapi/main/data_plane_openapi.yaml get /v1/projects/{project_id}/runs/{new_run_id}/compare/{old_run_id}/events","href":"/v2/api-reference-autogen/experiments/compare-events-between-two-experiment-runs"}]},{"group":"Queues","pages":[{"title":"List annotation queues","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/honeyhiveai/honeyhive-openapi/main/data_plane_openapi.yaml get /v1/projects/{project_id}/queues","href":"/v2/api-reference-autogen/queues/list-annotation-queues"},{"title":"Create an annotation queue","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/honeyhiveai/honeyhive-openapi/main/data_plane_openapi.yaml post /v1/projects/{project_id}/queues","href":"/v2/api-reference-autogen/queues/create-an-annotation-queue"},{"title":"Get an annotation queue","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/honeyhiveai/honeyhive-openapi/main/data_plane_openapi.yaml get /v1/projects/{project_id}/queues/{queue_id}","href":"/v2/api-reference-autogen/queues/get-an-annotation-queue"},{"title":"Delete an annotation queue","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/honeyhiveai/honeyhive-openapi/main/data_plane_openapi.yaml delete /v1/projects/{project_id}/queues/{queue_id}","href":"/v2/api-reference-autogen/queues/delete-an-annotation-queue"},{"title":"Update an annotation queue","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/honeyhiveai/honeyhive-openapi/main/data_plane_openapi.yaml patch /v1/projects/{project_id}/queues/{queue_id}","href":"/v2/api-reference-autogen/queues/update-an-annotation-queue"}]},{"group":"Configurations","pages":[]}]},{"group":"Control Plane API","pages":[{"group":"Alerts","pages":[{"title":"List alerts","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/honeyhiveai/honeyhive-openapi/main/control_plane_openapi.yaml get /v1/projects/{project_id}/alerts","href":"/v2/control-plane-api-reference-autogen/alerts/list-alerts"},{"title":"Create an alert","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/honeyhiveai/honeyhive-openapi/main/control_plane_openapi.yaml post /v1/projects/{project_id}/alerts","href":"/v2/control-plane-api-reference-autogen/alerts/create-an-alert"},{"title":"Get an alert","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/honeyhiveai/honeyhive-openapi/main/control_plane_openapi.yaml get /v1/projects/{project_id}/alerts/{alert_id}","href":"/v2/control-plane-api-reference-autogen/alerts/get-an-alert"}]},{"group":"Workspaces","pages":[{"title":"Create a workspace","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/honeyhiveai/honeyhive-openapi/main/control_plane_openapi.yaml post /v1/virtual_dataplanes/{virtual_dataplane_id}/workspaces","href":"/v2/control-plane-api-reference-autogen/workspaces/create-a-workspace"},{"title":"Get a workspace","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/honeyhiveai/honeyhive-openapi/main/control_plane_openapi.yaml get /v1/workspaces/{workspace_id}","href":"/v2/control-plane-api-reference-autogen/workspaces/get-a-workspace"},{"title":"Update a workspace","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/honeyhiveai/honeyhive-openapi/main/control_plane_openapi.yaml put /v1/workspaces/{workspace_id}","href":"/v2/control-plane-api-reference-autogen/workspaces/update-a-workspace"},{"title":"Delete a workspace","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/honeyhiveai/honeyhive-openapi/main/control_plane_openapi.yaml delete /v1/workspaces/{workspace_id}","href":"/v2/control-plane-api-reference-autogen/workspaces/delete-a-workspace"}]},{"group":"Projects","pages":[{"title":"Create a project","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/honeyhiveai/honeyhive-openapi/main/control_plane_openapi.yaml post /v1/workspaces/{workspace_id}/projects","href":"/v2/control-plane-api-reference-autogen/projects/create-a-project"},{"title":"Get a project","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/honeyhiveai/honeyhive-openapi/main/control_plane_openapi.yaml get /v1/projects/{project_id}","href":"/v2/control-plane-api-reference-autogen/projects/get-a-project"},{"title":"Update a project","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/honeyhiveai/honeyhive-openapi/main/control_plane_openapi.yaml put /v1/projects/{project_id}","href":"/v2/control-plane-api-reference-autogen/projects/update-a-project"},{"title":"Delete a project","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/honeyhiveai/honeyhive-openapi/main/control_plane_openapi.yaml delete /v1/projects/{project_id}","href":"/v2/control-plane-api-reference-autogen/projects/delete-a-project"}]},{"group":"Orgs","pages":[{"title":"Get an organization","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/honeyhiveai/honeyhive-openapi/main/control_plane_openapi.yaml get /v1/orgs/{org_id}","href":"/v2/control-plane-api-reference-autogen/orgs/get-an-organization"},{"title":"Update an organization","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/honeyhiveai/honeyhive-openapi/main/control_plane_openapi.yaml patch /v1/orgs/{org_id}","href":"/v2/control-plane-api-reference-autogen/orgs/update-an-organization"}]},{"group":"Virtual Dataplanes","pages":[{"title":"Create a virtual data plane","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/honeyhiveai/honeyhive-openapi/main/control_plane_openapi.yaml post /v1/orgs/{org_id}/virtual_dataplanes","href":"/v2/control-plane-api-reference-autogen/virtual-dataplanes/create-a-virtual-data-plane"},{"title":"Get a virtual data plane","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/honeyhiveai/honeyhive-openapi/main/control_plane_openapi.yaml get /v1/virtual_dataplanes/{virtual_dataplane_id}","href":"/v2/control-plane-api-reference-autogen/virtual-dataplanes/get-a-virtual-data-plane"},{"title":"Update a virtual data plane","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/honeyhiveai/honeyhive-openapi/main/control_plane_openapi.yaml put /v1/virtual_dataplanes/{virtual_dataplane_id}","href":"/v2/control-plane-api-reference-autogen/virtual-dataplanes/update-a-virtual-data-plane"},{"title":"Delete a virtual data plane","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/honeyhiveai/honeyhive-openapi/main/control_plane_openapi.yaml delete /v1/virtual_dataplanes/{virtual_dataplane_id}","href":"/v2/control-plane-api-reference-autogen/virtual-dataplanes/delete-a-virtual-data-plane"}]},{"group":"Usage","pages":[{"title":"Get usage for a date range","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/honeyhiveai/honeyhive-openapi/main/control_plane_openapi.yaml get /v1/orgs/{org_id}/usage","href":"/v2/control-plane-api-reference-autogen/usage/get-usage-for-a-date-range"},{"title":"Get current usage counts","deprecated":null,"version":null,"openapi":"https://raw.githubusercontent.com/honeyhiveai/honeyhive-openapi/main/control_plane_openapi.yaml get /v1/orgs/{org_id}/usage/current","href":"/v2/control-plane-api-reference-autogen/usage/get-current-usage-counts"}]}]},{"group":"Deprecated","hidden":true,"searchable":true,"pages":[{"title":"Deprecated API routes","href":"/v2/api-reference/deprecated-routes"}]}]},{"tab":"Integrations","icon":"plug","pages":[{"title":"Integrations","href":"/v2/integrations/overview"}]},{"tab":"Cookbooks","icon":"utensils","href":"https://github.com/honeyhiveai/cookbook"},{"tab":"Changelog","icon":"megaphone","pages":[{"title":"Changelog","href":"/v2/changelog/product"}]}]},{"product":"v1 (legacy)","icon":"server","description":"Deprecating Nov 5, 2026.","pages":[{"title":"v1 (legacy)","href":"/introduction/what-is-hhai"}]}]},"basePath":"","title":"Create a new metric version - HoneyHive AI Docs","buildId":"dpl_FWZhTb2vab28gFGFH4ojka6qEznQ","deploymentId":"dpl_FWZhTb2vab28gFGFH4ojka6qEznQ","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CBsVopKK.js","utils-DZAk68jJ.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-D32AYZrP.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-D_A5_cny.js","snippetPresets-xNRfS9th.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-BIB25-tq.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-CydJ4w4j.js","shallow-CYPBeQSG.js","getApiPlaygroundDisplay-A5xJVBOu.js","CodeSnippet-BVRTgi3m.js","CodeSnippets-DjD6BSlt.js","Page-Dr40SSJq.js","getPastedJson-D4V4JyrR.js","icon-uhcnG22T.js","MethodPill-CM-ZQdGH.js","DuplicateIcon-B_WnOiNf.js","createIcon-CJsb8utt.js","DynamicMarkdown-D-2HDKEp.js","SectionHeading-KP5xmMgQ.js","axios-vUo_bRtp.js","Markdown-D_k0dg6k.js","clsx-DK3K4Z1S.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-DE3EVdvd.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-fN9H9n9g.js"]}