Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
meterId
string
required
Pattern: ^[0-9a-fA-F]{24}$
Body
application/json
name
string
The name of the meter
Minimum string length: 1
eventName
string
The name of the event that the meter is tracking.
Minimum string length: 1
productCode
string
The product code of the meter
aggregationMethod
object
The aggregation method defines how the events should be summed to represent a usage value.
Show child attributes
filter
object
The filter to apply to the events to be included in the meter.
The filter object contains an array of Conditions, each condition represents a logical OR statement.
Each condition contains an array of Criteria (criterions), each criterion represents a logical AND statement.
Show child attributes
Response
RequestSuccess
meter
object
required
Show child attributes
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Vayu docs","colors":{"primary":"#00a7df","light":"#00e5f5","dark":"#163B7E"},"logo":{"light":"https://mintcdn.com/vayu-786467d1/o-8hk5NjGtk8g3GS/assets/logo/light.svg?fit=max\u0026auto=format\u0026n=o-8hk5NjGtk8g3GS\u0026q=85\u0026s=bfce6c8445b24dbb51f5541edea9c802","dark":"https://mintcdn.com/vayu-786467d1/4AZPc6NfN1PrLxrr/images/Vayu-FullLogo-White-GradientX2.png?fit=max\u0026auto=format\u0026n=4AZPc6NfN1PrLxrr\u0026q=85\u0026s=5f9efb6a5f2fc4ab1c6eb9529b865238"},"favicon":"https://mintcdn.com/vayu-786467d1/1SxS3Ik3tm_XU1jg/assets/favicon.png?fit=max\u0026auto=format\u0026n=1SxS3Ik3tm_XU1jg\u0026q=85\u0026s=e4cd09db091a8f11f1d4a0c892b8d1c0","navbar":{"links":[{"href":"mailto:shai@withvayu.com?subject=Support Request","label":"Support"}],"primary":{"type":"button","label":"Get started now","href":"https://www.withvayu.com/#FAQ"}},"footer":{"socials":{"linkedin":"https://www.linkedin.com/company/withvayu"}},"seo":{"indexing":"navigable"},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"Website","icon":"link","href":"https://withvayu.com/"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"vayu-786467d1","hasAudioNarration":false,"actualSubdomain":"vayu-786467d1","customDomains":["guide.withvayu.com"],"gitSource":{"type":"github","owner":"vayucode","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6aa653f3293612ad8f41df49","clientVersion":"0.0.4336","searchFilterCounts":[{"language":"default","tag":"API Reference","count":102},{"language":"default","tag":"Documentation","count":40},{"language":"default","tag":"Guides","count":37},{"language":"default","tag":"Integrations","count":20},{"language":"default","tag":"Customers","count":16},{"language":"default","tag":"API Documentation","count":12},{"language":"default","tag":"Invoices","count":11},{"language":"default","tag":"Plans \u0026 Pricing","count":10},{"language":"default","tag":"Contracts","count":8},{"language":"default","tag":"Events","count":6}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","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":"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":"site-roles","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":"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":"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":"turbopuffer-dual-write","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":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/endpoints/meters/update-meter","slug":"/api-reference/endpoints/meters/update-meter","pageMetadata":{"openapi":"put /meters/{meterId}","title":"Update Meter","description":"Update a Meter by id.","href":"/api-reference/endpoints/meters/update-meter"},"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: \"Update a Meter by id.\"\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 /meters/{meterId}","title":"Update Meter","description":"Update a Meter by id.","href":"/api-reference/endpoints/meters/update-meter"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["meters"],"operationId":"updateMeter","description":"Update a Meter by id.","summary":"Update Meter","security":["d473f364-8548-4cfe-a5d2-c5bb707bb2e9"],"requestBody":"3674b86e-f93a-49c6-b194-87925647f363","x-required-scope":"vayu.meters.write","parameters":["5983e6e8-9f8a-45f4-940b-31fa40011f3a"],"responses":{"200":"ff025827-0e08-458c-aedc-0353a10d24b7","400":"0243e2a5-ca6d-4589-a6a0-8e4e47270790","401":"297922dd-bdd6-4ef5-86d9-740193953538","404":"b73396c7-0063-41b4-b029-11fd0665ee2d","429":"21789d74-7e3f-4a0c-acb0-64d3a22730a3","500":"77ce8d7f-3cba-440e-880b-83cc97c101ea"},"method":"put","type":"path","servers":["0dec5a11-3cfa-4138-ae7a-94bedee29854","eee074eb-d58a-403e-b620-7f577fbb3209"],"path":"/meters/{meterId}","baseUrlOptions":["https://connect.withvayu.com","https://staging-connect.withvayu.com"],"title":"Update Meter","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"5983e6e8-9f8a-45f4-940b-31fa40011f3a":{"schema":{"type":"string","pattern":"^[0-9a-fA-F]{24}$","isRequired":true,"uniqueKey":"","typeLabel":"string"},"required":true,"in":"path","name":"meterId"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"description":"The name of the meter","uniqueKey":"name","typeLabel":"string"},"eventName":{"type":"string","minLength":1,"description":"The name of the event that the meter is tracking.","uniqueKey":"eventName","typeLabel":"string"},"productCode":{"type":"string","description":"The product code of the meter","uniqueKey":"productCode","typeLabel":"string"},"aggregationMethod":{"type":"object","properties":{"operator":{"type":"string","enum":["Count","Sum","Distinct","Max","Min","Average","First","Last"],"description":"The aggregation method defines how the events should be summed to represent a usage value.","isRequired":true,"uniqueKey":"aggregationMethod.operator","typeLabel":"enum\u003cstring>"},"field":{"type":"string","description":"The field inside the \"data\" property to apply the aggregation method to.","uniqueKey":"aggregationMethod.field","typeLabel":"string"},"instanceKey":{"type":"string","description":"The fields that is used to group different events together when measuring the usage.","uniqueKey":"aggregationMethod.instanceKey","typeLabel":"string"}},"required":["operator"],"description":"The aggregation method defines how the events should be summed to represent a usage value.","uniqueKey":"aggregationMethod","typeLabel":"object"},"filter":{"type":"object","properties":{"conditions":{"type":"array","items":{"type":"object","properties":{"criterions":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"filter.conditions.items.[INDEX].criterions.items.[INDEX].field","typeLabel":"string"},"operator":{"type":"string","enum":["Equals","DoesntEqual","Has","In","Contains","DoesntContain","LargerThan","LowerThan","LowerEqualTo","LargerEqualTo","Exists","DoesntExists"],"isRequired":true,"uniqueKey":"filter.conditions.items.[INDEX].criterions.items.[INDEX].operator","typeLabel":"enum\u003cstring>"},"value":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"filter.conditions.items.[INDEX].criterions.items.[INDEX].value","typeLabel":"string"}},"required":["field","operator","value"],"uniqueKey":"filter.conditions.items.[INDEX].criterions.items.[INDEX]","typeLabel":"object"},"minItems":1,"isRequired":true,"uniqueKey":"filter.conditions.items.[INDEX].criterions","typeLabel":"object[]"}},"required":["criterions"],"uniqueKey":"filter.conditions.items.[INDEX]","typeLabel":"object"},"minItems":1,"isRequired":true,"uniqueKey":"filter.conditions","typeLabel":"object[]"}},"required":["conditions"],"description":"The filter to apply to the events to be included in the meter.\n The filter object contains an array of Conditions, each condition represents a logical OR statement.\n Each condition contains an array of Criteria (criterions), each criterion represents a logical AND statement.","uniqueKey":"filter","typeLabel":"object"}},"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"name":"\u003cstring>","eventName":"\u003cstring>","productCode":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"ff025827-0e08-458c-aedc-0353a10d24b7":{"description":"RequestSuccess","content":{"application/json":{"schema":{"type":"object","properties":{"meter":{"type":"object","properties":{"name":{"type":"string","minLength":1,"description":"The name of the meter","isRequired":true,"uniqueKey":"meter.name","typeLabel":"string"},"eventName":{"type":"string","minLength":1,"description":"The name of the event that the meter is tracking.","isRequired":true,"uniqueKey":"meter.eventName","typeLabel":"string"},"aggregationMethod":{"type":"object","properties":{"operator":{"type":"string","enum":["Count","Sum","Distinct","Max","Min","Average","First","Last"],"description":"The aggregation method defines how the events should be summed to represent a usage value.","isRequired":true,"uniqueKey":"meter.aggregationMethod.operator","typeLabel":"enum\u003cstring>"},"field":{"type":"string","description":"The field inside the \"data\" property to apply the aggregation method to.","uniqueKey":"meter.aggregationMethod.field","typeLabel":"string"},"instanceKey":{"type":"string","description":"The fields that is used to group different events together when measuring the usage.","uniqueKey":"meter.aggregationMethod.instanceKey","typeLabel":"string"}},"required":["operator"],"description":"The aggregation method defines how the events should be summed to represent a usage value.","isRequired":true,"uniqueKey":"meter.aggregationMethod","typeLabel":"object"},"id":{"type":"string","isRequired":true,"uniqueKey":"meter.id","typeLabel":"string"},"createdAt":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"meter.createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"meter.updatedAt","typeLabel":"string\u003cdate-time>"},"productCode":{"type":"string","description":"The product code of the meter","uniqueKey":"meter.productCode","typeLabel":"string"},"filter":{"type":"object","properties":{"conditions":{"type":"array","items":{"type":"object","properties":{"criterions":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"meter.filter.conditions.items.[INDEX].criterions.items.[INDEX].field","typeLabel":"string"},"operator":{"type":"string","enum":["Equals","DoesntEqual","Has","In","Contains","DoesntContain","LargerThan","LowerThan","LowerEqualTo","LargerEqualTo","Exists","DoesntExists"],"isRequired":true,"uniqueKey":"meter.filter.conditions.items.[INDEX].criterions.items.[INDEX].operator","typeLabel":"enum\u003cstring>"},"value":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"meter.filter.conditions.items.[INDEX].criterions.items.[INDEX].value","typeLabel":"string"}},"required":["field","operator","value"],"uniqueKey":"meter.filter.conditions.items.[INDEX].criterions.items.[INDEX]","typeLabel":"object"},"minItems":1,"isRequired":true,"uniqueKey":"meter.filter.conditions.items.[INDEX].criterions","typeLabel":"object[]"}},"required":["criterions"],"uniqueKey":"meter.filter.conditions.items.[INDEX]","typeLabel":"object"},"minItems":1,"isRequired":true,"uniqueKey":"meter.filter.conditions","typeLabel":"object[]"}},"required":["conditions"],"description":"The filter to apply to the events to be included in the meter.\n The filter object contains an array of Conditions, each condition represents a logical OR statement.\n Each condition contains an array of Criteria (criterions), each criterion represents a logical AND statement.","uniqueKey":"meter.filter","typeLabel":"object"}},"required":["name","eventName","aggregationMethod","id","createdAt","updatedAt"],"isRequired":true,"uniqueKey":"meter","typeLabel":"object"}},"required":["meter"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"meter":{"name":"\u003cstring>","eventName":"\u003cstring>","aggregationMethod":{"operator":"Count","field":"\u003cstring>","instanceKey":"\u003cstring>"},"id":"\u003cstring>","createdAt":"2023-11-07T05:31:56Z","updatedAt":"2023-11-07T05:31:56Z","productCode":"\u003cstring>","filter":{"conditions":[{"criterions":[{"field":"\u003cstring>","operator":"Equals","value":"\u003cstring>"}]}]}}}}},"exampleType":"generated"}},"exampleType":"generated"},"0243e2a5-ca6d-4589-a6a0-8e4e47270790":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["invalid_request_error"],"isRequired":true,"uniqueKey":"type","typeLabel":"enum\u003cstring>"},"code":{"type":"string","description":"Specific machine-readable error code","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable error explanation","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"requiredScope":{"type":"string","description":"Scope the token was missing, present on insufficient_scope errors","uniqueKey":"requiredScope","typeLabel":"string"},"param":{"type":"string","description":"Single parameter that failed validation","uniqueKey":"param","typeLabel":"string"},"params":{"type":"array","items":{"type":"object","properties":{"param":{"type":"string","description":"The parameter that failed validation","isRequired":true,"uniqueKey":"params.items.[INDEX].param","typeLabel":"string"},"message":{"type":"string","description":"Why validation failed for this parameter","isRequired":true,"uniqueKey":"params.items.[INDEX].message","typeLabel":"string"}},"required":["param","message"],"uniqueKey":"params.items.[INDEX]","typeLabel":"object"},"description":"Multiple parameters that failed validation","uniqueKey":"params","typeLabel":"object[]"}},"required":["type","code","message"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"type":"invalid_request_error","code":"\u003cstring>","message":"\u003cstring>","requiredScope":"\u003cstring>","param":"\u003cstring>","params":[{"param":"\u003cstring>","message":"\u003cstring>"}]}}},"exampleType":"generated"}},"exampleType":"generated"},"297922dd-bdd6-4ef5-86d9-740193953538":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["authentication_error"],"isRequired":true,"uniqueKey":"type","typeLabel":"enum\u003cstring>"},"code":{"type":"string","enum":["authentication_failed"],"isRequired":true,"uniqueKey":"code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Human-readable error explanation","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"requiredScope":{"type":"string","description":"Scope the token was missing, present on insufficient_scope errors","uniqueKey":"requiredScope","typeLabel":"string"}},"required":["type","code","message"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"type":"authentication_error","code":"authentication_failed","message":"\u003cstring>","requiredScope":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"b73396c7-0063-41b4-b029-11fd0665ee2d":{"description":"Not Found","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["invalid_request_error"],"isRequired":true,"uniqueKey":"type","typeLabel":"enum\u003cstring>"},"code":{"type":"string","enum":["resource_not_found"],"isRequired":true,"uniqueKey":"code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Human-readable error explanation","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"requiredScope":{"type":"string","description":"Scope the token was missing, present on insufficient_scope errors","uniqueKey":"requiredScope","typeLabel":"string"}},"required":["type","code","message"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"type":"invalid_request_error","code":"resource_not_found","message":"\u003cstring>","requiredScope":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"21789d74-7e3f-4a0c-acb0-64d3a22730a3":{"description":"Too Many Requests","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["rate_limit_error"],"isRequired":true,"uniqueKey":"type","typeLabel":"enum\u003cstring>"},"code":{"type":"string","enum":["rate_limit_exceeded"],"isRequired":true,"uniqueKey":"code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Human-readable error explanation","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"requiredScope":{"type":"string","description":"Scope the token was missing, present on insufficient_scope errors","uniqueKey":"requiredScope","typeLabel":"string"}},"required":["type","code","message"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"type":"rate_limit_error","code":"rate_limit_exceeded","message":"\u003cstring>","requiredScope":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"77ce8d7f-3cba-440e-880b-83cc97c101ea":{"description":"Internal Server Error","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["api_error"],"isRequired":true,"uniqueKey":"type","typeLabel":"enum\u003cstring>"},"code":{"type":"string","enum":["internal_error"],"isRequired":true,"uniqueKey":"code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Human-readable error explanation","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"requiredScope":{"type":"string","description":"Scope the token was missing, present on insufficient_scope errors","uniqueKey":"requiredScope","typeLabel":"string"}},"required":["type","code","message"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"type":"api_error","code":"internal_error","message":"\u003cstring>","requiredScope":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"d473f364-8548-4cfe-a5d2-c5bb707bb2e9":{"BearerAuthorizer":{"type":"http","scheme":"bearer","bearerFormat":"JWT","scopes":[]}}},"servers":{"0dec5a11-3cfa-4138-ae7a-94bedee29854":{"url":"https://connect.withvayu.com","description":"Production server"},"eee074eb-d58a-403e-b620-7f577fbb3209":{"url":"https://staging-connect.withvayu.com","description":"Sandbox server"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"JWT","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":"BearerAuthorizer","name":"Authorization"}],"title":"BearerAuthorizer"}]},"originalFileLocation":"config/vy-openapi.yml"},"subdomain":"vayu-786467d1","siteName":"Vayu docs","title":"Update Meter - Vayu docs","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-01-28T10:53:07.183Z","originalFileLocation":"api-reference/endpoints/meters/update-meter.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=\"system\"}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=\"Update a Meter by id.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Vayu 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/vayu-786467d1/mq4wQUuhRBkcW2Tn/_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/vayu-786467d1/mq4wQUuhRBkcW2Tn/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/vayu-786467d1/mq4wQUuhRBkcW2Tn/_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/vayu-786467d1/mq4wQUuhRBkcW2Tn/_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/vayu-786467d1/mq4wQUuhRBkcW2Tn/_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/vayu-786467d1/mq4wQUuhRBkcW2Tn/_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/vayu-786467d1/mq4wQUuhRBkcW2Tn/_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/vayu-786467d1/mq4wQUuhRBkcW2Tn/_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/vayu-786467d1/mq4wQUuhRBkcW2Tn/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Update Meter - Vayu docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Update a Meter by id.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Vayu docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://guide.withvayu.com/api-reference/endpoints/meters/update-meter\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://vayu-786467d1.mintlify.site/_mintlify/api/og/v2?division=Meters\u0026amp;title=Update+Meter\u0026amp;description=Update+a+Meter+by+id.\u0026amp;theme=60e6ddf5d5054f7c48063afd\u0026amp;signature=f72c796d800b3696c7f60eb4cd8accfa875730291c3508f332db3761e75336c1\">\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 Meter - Vayu docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Update a Meter by id.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://vayu-786467d1.mintlify.site/_mintlify/api/og/v2?division=Meters\u0026amp;title=Update+Meter\u0026amp;description=Update+a+Meter+by+id.\u0026amp;theme=60e6ddf5d5054f7c48063afd\u0026amp;signature=f72c796d800b3696c7f60eb4cd8accfa875730291c3508f332db3761e75336c1\">\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/vayu-786467d1/mq4wQUuhRBkcW2Tn/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Vayu docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#00a7df\">\u003clink data-mint-head rel=\"canonical\" href=\"https://guide.withvayu.com/api-reference/endpoints/meters/update-meter\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/endpoints/meters/update-meter.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://guide.withvayu.com/#organization\",\"name\":\"Vayu docs\",\"url\":\"https://guide.withvayu.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/vayu-786467d1/o-8hk5NjGtk8g3GS/assets/logo/light.svg?fit=max\u0026auto=format\u0026n=o-8hk5NjGtk8g3GS\u0026q=85\u0026s=bfce6c8445b24dbb51f5541edea9c802\"}},{\"@type\":\"WebSite\",\"@id\":\"https://guide.withvayu.com#website\",\"name\":\"Vayu docs\",\"url\":\"https://guide.withvayu.com\",\"publisher\":{\"@id\":\"https://guide.withvayu.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://guide.withvayu.com/api-reference/endpoints/meters/update-meter#webpage\",\"url\":\"https://guide.withvayu.com/api-reference/endpoints/meters/update-meter\",\"name\":\"Update Meter\",\"description\":\"Update a Meter by id.\",\"dateModified\":\"2026-01-28T10:53:07.183Z\",\"isPartOf\":{\"@id\":\"https://guide.withvayu.com#website\"},\"breadcrumb\":{\"@id\":\"https://guide.withvayu.com/api-reference/endpoints/meters/update-meter#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://guide.withvayu.com/api-reference/endpoints/meters/update-meter#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API Reference\",\"item\":\"https://guide.withvayu.com/api-reference/endpoints/customers/list-customers\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Meters\",\"item\":\"https://guide.withvayu.com/api-reference/endpoints/meters/list-meters\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Update Meter\",\"item\":\"https://guide.withvayu.com/api-reference/endpoints/meters/update-meter\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://guide.withvayu.com/api-reference/endpoints/meters/update-meter#apireference\",\"headline\":\"Update Meter\",\"name\":\"Update Meter\",\"description\":\"Update a Meter by id.\",\"url\":\"https://guide.withvayu.com/api-reference/endpoints/meters/update-meter\",\"mainEntityOfPage\":{\"@id\":\"https://guide.withvayu.com/api-reference/endpoints/meters/update-meter#webpage\"},\"dateModified\":\"2026-01-28T10:53:07.183Z\",\"publisher\":{\"@id\":\"https://guide.withvayu.com/#organization\"},\"isPartOf\":{\"@id\":\"https://guide.withvayu.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Vayu docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Vayu docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/endpoints/meters/update-meter.md","siteName":"Vayu docs","nav":{"global":{"anchors":[{"anchor":"Website","icon":"link","href":"https://withvayu.com/"}]},"tabs":[{"tab":"Documentation","icon":"file-doc","pages":[{"title":"Documentation","href":"/documentation/get-started/introduction"}]},{"tab":"API Reference","icon":"phone-plus","groups":[{"group":"API Documentation","icon":"file-doc","pages":[{"title":"Vayu API","href":"/api-reference/pages/introduction"},{"title":"Connecting to Vayu","icon":"key","href":"/api-reference/pages/connecting-to-vayu"},{"title":"SDK","icon":"cube","href":"/api-reference/pages/sdk"},{"title":"Errors","icon":"circle-exclamation","href":"/api-reference/pages/errors"},{"title":"Rate Limits","icon":"gauge-high","href":"/api-reference/pages/rate-limits"},{"title":"Idempotency","icon":"rotate","href":"/api-reference/pages/idempotency"},{"title":"Pagination","icon":"list","href":"/api-reference/pages/pagination"},{"title":"Sending events","icon":"paper-plane","href":"/api-reference/pages/sending-events"},{"title":"Dry Run Ingestion","icon":"square-terminal","href":"/api-reference/pages/ingestion"},{"title":"Browsing Events","icon":"eye","href":"/api-reference/pages/browsing-events"},{"title":"Webhooks","icon":"bell","href":"/api-reference/pages/webhooks"},{"title":"Product Structure","icon":"box","href":"/api-reference/pages/product-structure"}]},{"group":"API Reference","icon":"file-dashed-line","pages":[{"group":"Customers","icon":"hand-holding-box","pages":[{"openapi":"get /customers","title":"List Customers","href":"/api-reference/endpoints/customers/list-customers"},{"openapi":"post /customers","title":"Create Customer","href":"/api-reference/endpoints/customers/create-customer"},{"openapi":"get /customers/{customerId}","title":"Get Customer","href":"/api-reference/endpoints/customers/get-customer"},{"openapi":"get /customers/externalId/{externalId}","title":"Get customer by externalId","href":"/api-reference/endpoints/customers/get-customer-by-externalid"},{"openapi":"get /customers/integration/{integrationType}/{integrationId}","title":"Get customer by integration id","href":"/api-reference/endpoints/customers/get-customer-by-integration-id"},{"openapi":"put /customers/{customerId}","title":"Update Customer","href":"/api-reference/endpoints/customers/update-customer"},{"openapi":"delete /customers/{customerId}","title":"Delete Customer","href":"/api-reference/endpoints/customers/delete-customer"},{"openapi":"get /customers/products-consumptions/{customerId}","title":"Get products consumptions by customer id","href":"/api-reference/endpoints/customers/get-products-consumptions-by-customer-id"},{"openapi":"get /customers/products-consumptions/alias/{alias}","title":"Get products consumptions by customer alias","href":"/api-reference/endpoints/customers/get-products-consumptions-by-customer-alias"},{"openapi":"get /customers/name/{name}","title":"Get customer by name","href":"/api-reference/endpoints/customers/get-customer-by-name"}]},{"group":"Customer Relations","icon":"handshake","pages":[{"openapi":"get /customer-relations/{customerRelationId}","title":"Get Customer relation","href":"/api-reference/endpoints/customers/get-customer-relation"},{"openapi":"post /customer-relations","title":"Create Customer relation","href":"/api-reference/endpoints/customers/create-customer-relation"}]},{"group":"Catalog Products","icon":"list-dropdown","pages":[{"openapi":"get /catalogProducts/{catalogProductId}","title":"Get Catalog product","href":"/api-reference/endpoints/catalog-products/get-catalog-product"},{"openapi":"put /catalogProducts/{catalogProductId}","title":"Update Catalog product","href":"/api-reference/endpoints/catalog-products/update-catalog-product"},{"openapi":"get /catalogProducts","title":"List Catalog products","href":"/api-reference/endpoints/catalog-products/list-catalog-products"},{"openapi":"post /catalogProducts","title":"Create Catalog product","href":"/api-reference/endpoints/catalog-products/create-catalog-product"},{"openapi":"delete /catalogProducts/{catalogProductId}","title":"Delete Catalog product","href":"/api-reference/endpoints/catalog-products/delete-catalog-product"}]},{"group":"Contracts","icon":"file-contract","pages":[{"openapi":"get /contracts/{contractId}","title":"Get Contract","href":"/api-reference/endpoints/contracts/get-contract"},{"openapi":"get /contracts/integration/{integrationType}/{integrationId}","title":"Get contract by integration id","href":"/api-reference/endpoints/contracts/get-contract-by-integration-id"},{"openapi":"delete /contracts/{contractId}","title":"Delete Contract","href":"/api-reference/endpoints/contracts/delete-contract"},{"openapi":"get /contracts","title":"List contracts","href":"/api-reference/endpoints/contracts/list-contracts"},{"openapi":"post /contracts","title":"Create Contract","href":"/api-reference/endpoints/contracts/create-contract"}]},{"group":"Invoices","icon":"file-invoice-dollar","pages":[{"openapi":"get /invoices/{invoiceId}","title":"Get Invoice","href":"/api-reference/endpoints/invoices/get-invoice"},{"openapi":"get /invoices","title":"List invoices","href":"/api-reference/endpoints/invoices/list-invoices"},{"openapi":"get /invoices/{invoiceId}/payment-status","title":"Get invoice payment status","href":"/api-reference/endpoints/invoices/get-invoice-payment-status"}]},{"group":"Measurements","icon":"ruler-combined","pages":[{"openapi":"get /measurements/{measurementId}","title":"Get Measurement","href":"/api-reference/endpoints/measurements/get-measurement"},{"openapi":"get /measurements","title":"List Measurements","href":"/api-reference/endpoints/measurements/list-measurements"},{"openapi":"post /measurements","title":"Create Measurement","href":"/api-reference/endpoints/measurements/create-measurement"},{"openapi":"delete /measurements/{measurementId}","title":"Delete Measurement","href":"/api-reference/endpoints/measurements/delete-measurement"}]},{"group":"Auth","icon":"key-skeleton","pages":[{"openapi":"post /login","title":"Login by obtaining a new access token","href":"/api-reference/endpoints/auth/login-by-obtaining-a-new-access-token"}]},{"group":"Events","icon":"calendar","pages":[{"openapi":"post /events/dry-run","title":"Submit a batch of events for testing","href":"/api-reference/endpoints/events/submit-a-batch-of-events-for-testing"},{"openapi":"get /events","title":"Query events by timestamp period and optional event name","href":"/api-reference/endpoints/events/query-events-by-timestamp-period-and-optional-event-name"},{"openapi":"post /events","title":"Submit a batch of events for ingestion","href":"/api-reference/endpoints/events/submit-a-batch-of-events-for-ingestion"},{"openapi":"get /events/{refId}","title":"Get event by refId","href":"/api-reference/endpoints/events/get-event-by-refid"},{"openapi":"delete /events/{refId}","title":"Delete an event by refId","href":"/api-reference/endpoints/events/delete-an-event-by-refid"},{"openapi":"post /events/delete-by-refs","title":"Delete events by refs","href":"/api-reference/endpoints/events/delete-events-by-refs"}]},{"group":"Credits","icon":"credit-card-front","pages":[{"openapi":"get /credits","title":"Retrieve credit ledger entries for customer.","href":"/api-reference/endpoints/credits/retrieve-credit-ledger-entries-for-customer"},{"openapi":"post /credits/grant","title":"Grant credits to a customer credit ledger","href":"/api-reference/endpoints/credits/grant-credits-to-a-customer-credit-ledger"},{"openapi":"post /credits/deduct","title":"Deduct credits from customer credit ledger","href":"/api-reference/endpoints/credits/deduct-credits-from-customer-credit-ledger"}]},{"group":"Product Consumption","icon":"space-station-moon-construction","pages":[{"openapi":"get /product-consumption/{productId}","title":"Get product consumption","href":"/api-reference/endpoints/product-consumptions/get-product-consumption"}]},{"group":"Meters","icon":"meter","pages":[{"openapi":"get /meters","title":"List Meters","href":"/api-reference/endpoints/meters/list-meters"},{"openapi":"get /meters/{meterId}","title":"Get Meter","description":"Get a Meter by id.","href":"/api-reference/endpoints/meters/get-meter"},{"openapi":"put /meters/{meterId}","title":"Update Meter","href":"/api-reference/endpoints/meters/update-meter"},{"openapi":"delete /meters/{meterId}","title":"Delete Meter","description":"Delete a Meter by id.","href":"/api-reference/endpoints/meters/delete-meter"}]},{"group":"Webhooks","icon":"webhook","pages":[{"openapi":"post /webhook","title":"Subscribe to webhooks","href":"/api-reference/endpoints/webhooks/subscribe-to-webhooks"}]}]}]},{"tab":"Integrations","icon":"bullseye-pointer","pages":[{"title":"Integrations","href":"/documentation/guides/integrations/anrok"}]}]},"basePath":"","title":"Update Meter - Vayu docs","deploymentId":"dpl_9bQLTw9nc2h9csDGYcKwWenPcQWn","buildId":"dpl_9bQLTw9nc2h9csDGYcKwWenPcQWn","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-D4yvBxwa.js","snippetPresets-CkhhQaIQ.js","utils-XnMGX2lF.js","style-to-object-BY3JEAdk.js","utils-CRXL1dwr.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-DvwRKZnA.js","conditional-requirements-CFM0id0Q.js","cloneDeep-DYtgUc7n.js","_Uint8Array-D8z7zjjJ.js","isObject-FP1Yky1u.js","ApiExamples-RYQSJVS4.js","usePlaygroundInputsStore-k_R_BTDL.js","shallow-BwVhzryZ.js","isEqual-Cx5TQjMc.js","CodeSnippets-BDe2dS5N.js","CodeSnippet-C1QlaNYl.js","use-playground-group-access-DyQ_1IIe.js","Page-DQd9HN9r.js","api-description-markdown-BpDftTKT.js","DynamicMarkdown-CZT_WAnN.js","SectionHeading-K1iuDm9j.js","MethodPill-Dx3JIwHJ.js","getPastedJson-buPTdYs_.js","Check2Icon-DmMrzBYX.js","axios-CsQoIw0U.js","Markdown-erv2ryQz.js","AssistantPageLink-DJ01X1Sn.js","dist-D9mz3EIS.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}