---
title: "Update Query Path"
method: PATCH
path: "/data/projects/{projectId}/queries/{queryId}/path"
tags: ["Data -- Queries"]
---

# Update Query Path

`PATCH /data/projects/{projectId}/queries/{queryId}/path`

## Request

- Base URL: `https://partner.peaka.studio/api/v1`
- URL: `https://partner.peaka.studio/api/v1/data/projects/{projectId}/queries/{queryId}/path`
- Auth: HTTP bearer

Moves a query to the specified folder path. The path is resolved by the backend service.

## Path parameters

- `projectId` string, required
- `queryId` string, required

## Request body

- QueryPathUpdateRequest
  - `path` string: The path to place this query in (e.g. "/analytics/dashboards").

## Response `200`

Path updated

---

[API](https://skmtc.dev/peaka/apis/peaka-gateway-api.md) · [All operations](https://skmtc.dev/peaka/apis/peaka-gateway-api/llms.txt) · [OpenAPI document](https://skmtc.dev/peaka/apis/peaka-gateway-api/revisions/e68b033a22d5?raw)
