---
title: "Rewrite a tracked query's text. Future weekly checks use the new text."
method: POST
path: "/api/v1/queries/update"
---

# Rewrite a tracked query's text. Future weekly checks use the new text.

`POST /api/v1/queries/update`

## Request

- Base URL: `https://api.rctrl.com`
- URL: `https://api.rctrl.com/api/v1/queries/update`
- Auth: HTTP bearer

Requires the `write:content` scope.

## Request body

- object
  - `queryId` string, required: Query id from get_tracked_queries
  - `queryText` string, required: New query text (min 5 characters)

## Response `200`

Success; the payload is wrapped in a data envelope

- object
  - `data` unknown

## Other responses

- `400`: Bad input
- `401`: Missing or invalid API key
- `403`: API key lacks the required scope
- `404`: Not found in this workspace
- `429`: Rate limited; the body includes a retryAfterMs hint

---

[API](https://skmtc.dev/rctrl/apis/rankcontrol-api.md) · [All operations](https://skmtc.dev/rctrl/apis/rankcontrol-api/llms.txt) · [OpenAPI document](https://skmtc.dev/rctrl/apis/rankcontrol-api/revisions/98ecd236394a?raw)
