# Update a meter

`PATCH /api/v1/meters/{id}`

Needs the `catalog:write` scope, or a full-access key.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | required |  |

## Request body

JSON Schema:

```json
{
  "type": "object",
  "properties": {
    "name": {
      "type": "string"
    },
    "feature_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid",
      "example": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
    },
    "overage_plan_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid",
      "example": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
    },
    "archived": {
      "type": "boolean"
    }
  }
}
```

## Responses

### 200

The meter.

JSON Schema:

```json
{
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "example": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
        },
        "code": {
          "type": "string",
          "example": "document.created"
        },
        "name": {
          "type": "string"
        },
        "aggregation": {
          "type": "string",
          "enum": [
            "sum",
            "count",
            "max",
            "unique"
          ]
        },
        "unique_property": {
          "type": [
            "string",
            "null"
          ]
        },
        "feature_id": {
          "type": [
            "string",
            "null"
          ],
          "format": "uuid",
          "example": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
          "description": "The LIMIT feature this meter counts against."
        },
        "overage_plan_id": {
          "type": [
            "string",
            "null"
          ],
          "format": "uuid",
          "example": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
          "description": "A `package`/`metered` plan pricing usage above the included limit; billed on the renewal invoice for the closed period."
        },
        "archived": {
          "type": "boolean"
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time"
        }
      },
      "required": [
        "id",
        "code",
        "name",
        "aggregation",
        "unique_property",
        "feature_id",
        "overage_plan_id",
        "archived",
        "created_at",
        "updated_at"
      ]
    },
    "_agent": {
      "type": "object",
      "properties": {
        "summary": {
          "type": "string"
        },
        "status": {
          "type": "string",
          "enum": [
            "ok"
          ]
        },
        "next_actions": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "warnings": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "summary",
        "status",
        "next_actions",
        "warnings"
      ]
    },
    "api_version": {
      "type": "string",
      "example": "2026-07-01"
    }
  },
  "required": [
    "data",
    "_agent",
    "api_version"
  ]
}
```
