---
title: "Update Query"
method: PATCH
path: "/queries/{query_id}"
---

# Update Query

`PATCH /queries/{query_id}`

Update query name and/or tags.

## Path parameters

- `query_id` string, required

## Request body

- UpdateQueryRequest — Request model for updating query name and/or tags.
  - `query_name` string, nullable — New name for the query
  - `tags` string[], nullable — Complete list of tags to set

## Response `200`

Successful Response

- QueryUpdateResponse — Response model for updating a query.
  - `query_id` string, required
  - `query_name` string, required
  - `tags` string[], required

## Other responses

- `422` — Validation Error

## Changes

- **2026-08-18** `6b838ca10add` — 1 warning
  - the `query_name/anyOf[subschema #1]/` request property's maxLength was set to `255`

[Change history](https://skmtc.dev/discolike/apis/discolike-api/changes/queries/:query_id/patch.md)

---

[API](https://skmtc.dev/discolike/apis/discolike-api.md) · [All operations](https://skmtc.dev/discolike/apis/discolike-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/discolike/discolike-api/revisions/11d1e74d88c7/schema)
