---
title: "Update UsageSavedQuery"
method: PUT
path: "/organizations/{orgId}/usage/savedqueries/{id}"
tags: ["DataExplorerV2"]
---

# Update UsageSavedQuery

`PUT /organizations/{orgId}/usage/savedqueries/{id}`

Update a UsageSavedQuery for the given UUID.

## Path parameters

- `orgId` string, required
- `id` string, required

## Request body

- UsageSavedQueryRequest
  - `version` integer — The version number of the entity: - **Create entity:** Not valid for initial insertion of new entity - *do not use for Create*. On initial Create, version is set at 1 and listed in the response. - **Update Entity:** On Update, version is required and must match the existing version because a check is performed to ensure sequential versioning is preserved. Version is incremented by 1 and listed in the response.

## Response `200`

Return the updated UsageSavedQuery

- UsageSavedQueryResponse
  - `id` string, required — The UUID of the entity.
  - `version` integer — The version number: - **Create:** On initial Create to insert a new entity, the version is set at 1 in the response. - **Update:** On successful Update, the version is incremented by 1 in the response.

## Other responses

- `4XX` — Error message
- `5XX` — Error message

---

[API](https://skmtc.net/m3ter-com/apis/m3ter-api.md) · [All operations](https://skmtc.net/m3ter-com/apis/m3ter-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/m3ter-com/m3ter-api/versions/ac93d1a9e6d9/schema)
