curl --request PATCH \
--url https://partner.peaka.studio/api/v1/data/projects/{projectId}/queries/folders/{folderId}/path \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"path": "/Archive/Reports"
}
'import requests
url = "https://partner.peaka.studio/api/v1/data/projects/{projectId}/queries/folders/{folderId}/path"
payload = { "path": "/Archive/Reports" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({path: '/Archive/Reports'})
};
fetch('https://partner.peaka.studio/api/v1/data/projects/{projectId}/queries/folders/{folderId}/path', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://partner.peaka.studio/api/v1/data/projects/{projectId}/queries/folders/{folderId}/path",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'path' => '/Archive/Reports'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://partner.peaka.studio/api/v1/data/projects/{projectId}/queries/folders/{folderId}/path"
payload := strings.NewReader("{\n \"path\": \"/Archive/Reports\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://partner.peaka.studio/api/v1/data/projects/{projectId}/queries/folders/{folderId}/path")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"path\": \"/Archive/Reports\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://partner.peaka.studio/api/v1/data/projects/{projectId}/queries/folders/{folderId}/path")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"path\": \"/Archive/Reports\"\n}"
response = http.request(request)
puts response.read_body{
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Reports",
"path": "/Archive/Reports",
"parentId": "550e8400-e29b-41d4-a716-446655440002",
"createdAt": "2025-01-15T10:30:00Z"
}{
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Monthly Reports",
"path": "/reports/monthly",
"parentId": "550e8400-e29b-41d4-a716-446655440001",
"createdAt": "2025-01-15T10:30:00Z"
}{
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Monthly Reports",
"path": "/reports/monthly",
"parentId": "550e8400-e29b-41d4-a716-446655440001",
"createdAt": "2025-01-15T10:30:00Z"
}Move Query Folder
Moves a query folder to a new path in the hierarchy. All child folders and their paths are updated accordingly.
curl --request PATCH \
--url https://partner.peaka.studio/api/v1/data/projects/{projectId}/queries/folders/{folderId}/path \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"path": "/Archive/Reports"
}
'import requests
url = "https://partner.peaka.studio/api/v1/data/projects/{projectId}/queries/folders/{folderId}/path"
payload = { "path": "/Archive/Reports" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({path: '/Archive/Reports'})
};
fetch('https://partner.peaka.studio/api/v1/data/projects/{projectId}/queries/folders/{folderId}/path', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://partner.peaka.studio/api/v1/data/projects/{projectId}/queries/folders/{folderId}/path",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'path' => '/Archive/Reports'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://partner.peaka.studio/api/v1/data/projects/{projectId}/queries/folders/{folderId}/path"
payload := strings.NewReader("{\n \"path\": \"/Archive/Reports\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://partner.peaka.studio/api/v1/data/projects/{projectId}/queries/folders/{folderId}/path")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"path\": \"/Archive/Reports\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://partner.peaka.studio/api/v1/data/projects/{projectId}/queries/folders/{folderId}/path")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"path\": \"/Archive/Reports\"\n}"
response = http.request(request)
puts response.read_body{
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Reports",
"path": "/Archive/Reports",
"parentId": "550e8400-e29b-41d4-a716-446655440002",
"createdAt": "2025-01-15T10:30:00Z"
}{
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Monthly Reports",
"path": "/reports/monthly",
"parentId": "550e8400-e29b-41d4-a716-446655440001",
"createdAt": "2025-01-15T10:30:00Z"
}{
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Monthly Reports",
"path": "/reports/monthly",
"parentId": "550e8400-e29b-41d4-a716-446655440001",
"createdAt": "2025-01-15T10:30:00Z"
}

Authorizations
Use the Authorization header with the value 'Bearer ' 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
Path Parameters
ID of the Project
ID of the Query Folder to move
Body
Move request
The path to place this query in (e.g. "/analytics/dashboards").
Response
Folder moved successfully
Represents a query folder
Unique identifier of the folder (UUID)
"550e8400-e29b-41d4-a716-446655440000"
Display name of the folder
"Monthly Reports"
Full path of the folder in the hierarchy
"/reports/monthly"
ID of the parent folder, null if root-level
"550e8400-e29b-41d4-a716-446655440001"
Timestamp when the folder was created (ISO 8601)
"2025-01-15T10:30:00Z"