> ## Documentation Index
> Fetch the complete documentation index at: https://docs.peaka.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Query Path

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

<span style={{display: "flex", gap: "10px", flexDirection: "row", alignItems: "center"}}>
  <img src="https://cdn.peaka.com/badges/partner-api-key-badge.png" />

  <img src="https://cdn.peaka.com/badges/project-api-key-badge.png" />
</span>


## OpenAPI

````yaml patch /data/projects/{projectId}/queries/{queryId}/path
openapi: 3.0.1
info:
  title: Peaka Gateway API
  description: Peaka Gateway API Documentation
  version: '1.0'
servers:
  - url: https://partner.peaka.studio/api/v1
    description: Default Server URL (US Zone)
  - url: https://partner.eu.peaka.studio/api/v1
    description: EU Zone
security:
  - bearerAuth: []
paths:
  /data/projects/{projectId}/queries/{queryId}/path:
    patch:
      tags:
        - Data -- Queries
      summary: Update Query Path
      description: >-
        Moves a query to the specified folder path. The path is resolved by the
        backend service.
      operationId: updateQueryPath
      parameters:
        - name: projectId
          in: path
          description: ID of the Project
          required: true
          schema:
            type: string
          example: mtKDhe1U
        - name: queryId
          in: path
          description: ID of the Query
          required: true
          schema:
            type: string
          example: 709922802836177300
      requestBody:
        description: Path Request
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/QueryPathUpdateRequest'
            example:
              path: /reports/monthly
        required: true
      responses:
        '200':
          description: Path updated
components:
  schemas:
    QueryPathUpdateRequest:
      type: object
      properties:
        path:
          type: string
          description: The path to place this query in (e.g. "/analytics/dashboards").
  securitySchemes:
    bearerAuth:
      type: http
      description: >-
        Use the Authorization header with the value 'Bearer <apiKey>' to
        authenticate. Partner API Keys have full access; Project API Keys are
        limited to their project scope. Learn more:
        https://docs.peaka.com/api-reference/authentication
      scheme: bearer
      bearerFormat: Api Key

````