> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blink.store/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Meter Details

> This endpoint updates the details of an existing meter. Only `name` and `unit` fields can be updated. The `x-store-id` header is required to ensure store association.



## OpenAPI

````yaml /api-reference/blink-api.json patch /meters/{id}
openapi: 3.0.0
info:
  title: Blink API
  description: Comprehensive API documentation for Blink.
  version: 1.0.0
servers:
  - url: https://api.blink.store/v1
security:
  - storeIdHeader: []
tags:
  - name: Invoices
    description: Unified merchant of record invoices for products and subscriptions.
  - name: Geo Pricing
    description: Resolve Purchasing Power Parity (PPP) localized pricing.
paths:
  /meters/{id}:
    patch:
      tags:
        - Meters
      summary: Update Meter Details
      description: >-
        This endpoint updates the details of an existing meter. Only `name` and
        `unit` fields can be updated. The `x-store-id` header is required to
        ensure store association.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: ID of the meter.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateMeterRequest'
      responses:
        '200':
          description: Meter details updated successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MeterDetails'
        '400':
          description: Bad Request - No updatable fields provided.
        '401':
          description: Unauthorized - Store ID header missing.
        '404':
          description: Meter not found.
      security:
        - storeIdHeader: []
components:
  schemas:
    UpdateMeterRequest:
      type: object
      properties:
        name:
          type: string
        unit:
          type: string
    MeterDetails:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        unit:
          type: string
        store_id:
          type: string
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
  securitySchemes:
    storeIdHeader:
      type: apiKey
      in: header
      name: x-store-id

````