Criar Pasta na Base de Conhecimento
curl --request POST \
--url https://chat.api.toolzz.com.br/api/v1/knowledge/folder \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"knowledgebaseId": "<string>"
}
'import requests
url = "https://chat.api.toolzz.com.br/api/v1/knowledge/folder"
payload = {
"name": "<string>",
"knowledgebaseId": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>', knowledgebaseId: '<string>'})
};
fetch('https://chat.api.toolzz.com.br/api/v1/knowledge/folder', 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://chat.api.toolzz.com.br/api/v1/knowledge/folder",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'knowledgebaseId' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"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://chat.api.toolzz.com.br/api/v1/knowledge/folder"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"knowledgebaseId\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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.post("https://chat.api.toolzz.com.br/api/v1/knowledge/folder")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"knowledgebaseId\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://chat.api.toolzz.com.br/api/v1/knowledge/folder")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"knowledgebaseId\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"institutionId": "<string>",
"name": "<string>",
"isRoot": true
}Pastas
Criar Pasta na Base de Conhecimento
Endpoint para criar uma pasta na Base de Conhecimento
POST
/
api
/
v1
/
knowledge
/
folder
Criar Pasta na Base de Conhecimento
curl --request POST \
--url https://chat.api.toolzz.com.br/api/v1/knowledge/folder \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"knowledgebaseId": "<string>"
}
'import requests
url = "https://chat.api.toolzz.com.br/api/v1/knowledge/folder"
payload = {
"name": "<string>",
"knowledgebaseId": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>', knowledgebaseId: '<string>'})
};
fetch('https://chat.api.toolzz.com.br/api/v1/knowledge/folder', 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://chat.api.toolzz.com.br/api/v1/knowledge/folder",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'knowledgebaseId' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"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://chat.api.toolzz.com.br/api/v1/knowledge/folder"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"knowledgebaseId\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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.post("https://chat.api.toolzz.com.br/api/v1/knowledge/folder")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"knowledgebaseId\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://chat.api.toolzz.com.br/api/v1/knowledge/folder")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"knowledgebaseId\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"institutionId": "<string>",
"name": "<string>",
"isRoot": true
}Token de Acesso
string
Token de acesso (“Bearer” deve estar antes do token)
Descrição do Body
string
required
Nome da pasta
string
required
ID da Base de Conhecimento
Show Request
Show Request
Descrição da Resposta
Abaixo você verá a descrição da resposta da criação da pastauuid
required
Identificador único da pasta.
uuid
required
Identificador da instituição associada à pasta.
string
required
Nome da pasta.
boolean
required
Indica se a pasta é raiz.

