Skip to main content
PUT
/
api
/
v1
/
insights
/
folders
/
{folder_id}
Typescript (SDK)
import { SyllableSDK } from "syllable-sdk";

const syllableSDK = new SyllableSDK({
  apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
});

async function run() {
  const result = await syllableSDK.insights.folders.update({
    folderId: 567518,
    insightsFolderInput: {
      name: "customer-complaints",
      label: "support",
      description: "Call recordings related to customer complaints",
    },
  });

  console.log(result);
}

run();
import os
from syllable_sdk import SyllableSDK


with SyllableSDK(
api_key_header=os.getenv("SYLLABLESDK_API_KEY_HEADER", ""),
) as ss_client:

res = ss_client.insights.folders.update(folder_id=567518, insights_folder_input={
"name": "customer-complaints",
"label": "support",
"description": "Call recordings related to customer complaints",
})

# Handle response
print(res)
curl --request PUT \
--url https://api.syllable.cloud/api/v1/insights/folders/{folder_id} \
--header 'Content-Type: application/json' \
--header 'Syllable-API-Key: <api-key>' \
--data '
{
"name": "<string>",
"label": "support",
"description": "Call recordings related to customer complaints"
}
'
const options = {
method: 'PUT',
headers: {'Syllable-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
label: 'support',
description: 'Call recordings related to customer complaints'
})
};

fetch('https://api.syllable.cloud/api/v1/insights/folders/{folder_id}', 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://api.syllable.cloud/api/v1/insights/folders/{folder_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'label' => 'support',
'description' => 'Call recordings related to customer complaints'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"Syllable-API-Key: <api-key>"
],
]);

$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://api.syllable.cloud/api/v1/insights/folders/{folder_id}"

payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"label\": \"support\",\n \"description\": \"Call recordings related to customer complaints\"\n}")

req, _ := http.NewRequest("PUT", url, payload)

req.Header.Add("Syllable-API-Key", "<api-key>")
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.put("https://api.syllable.cloud/api/v1/insights/folders/{folder_id}")
.header("Syllable-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"label\": \"support\",\n \"description\": \"Call recordings related to customer complaints\"\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.syllable.cloud/api/v1/insights/folders/{folder_id}")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["Syllable-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"label\": \"support\",\n \"description\": \"Call recordings related to customer complaints\"\n}"

response = http.request(request)
puts response.read_body
{
  "name": "<string>",
  "id": 123,
  "last_updated_by": "<string>",
  "label": "support",
  "description": "Call recordings related to customer complaints",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}
{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}

Authorizations

Syllable-API-Key
string
header
required

Path Parameters

folder_id
integer
required

Body

application/json

Request model to create/update an insight upload folder.

name
string
required

Human-readable name of insight folder

Example:

"customer-complaints"

label
string | null

optional label assigned to insight folder

Example:

"support"

description
string | null

Text description of insight upload folder

Example:

"Call recordings related to customer complaints"

Response

Successful Response

Response model for an insight upload folder.

name
string
required

Human-readable name of insight folder

Example:

"customer-complaints"

id
integer
required

System-assign folder ID

Example:

182764

last_updated_by
string
required

Email of user who last updated upload folder

Example:

"user@email.com"

label
string | null

optional label assigned to insight folder

Example:

"support"

description
string | null

Text description of insight upload folder

Example:

"Call recordings related to customer complaints"

created_at
string<date-time>

Timestamp at which insight upload folder was created

Example:

"2026-07-08T00:00:00Z"

updated_at
string<date-time>

Timestamp at which insight upload folder was last updated

Example:

"2026-07-09T00:00:00Z"