Change a namespace's settings
Only the fields you send are changed; anything omitted is left as it is, so {} changes nothing. Sending instructions: null, or an empty or whitespace-only string, clears them and returns summaries to the neutral default.
Instructions are capped at 2000 characters. A longer note is refused rather than truncated, because a note cut mid-sentence is a worse steer than none. A change reaches each summary the next time that summary is regenerated, not immediately.
PATCH
/
ai
/
memory
/
namespaces
/
{namespace}
/
settings
JavaScript
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
const response = await client.ai.memory.namespaces.settings.patchAll('namespace', {
summary: 'summary',
});
console.log(response.data);import os
from telnyx import Telnyx
client = Telnyx(
api_key=os.environ.get("TELNYX_API_KEY"), # This is the default and can be omitted
)
response = client.ai.memory.namespaces.settings.patch_all(
namespace="namespace",
summary="summary",
)
print(response.data)
package main
import (
"context"
"fmt"
"github.com/team-telnyx/telnyx-go"
"github.com/team-telnyx/telnyx-go/option"
)
func main() {
client := telnyx.NewClient(
option.WithAPIKey("My API Key"),
)
response, err := client.AI.Memory.Namespaces.Settings.PatchAll(
context.TODO(),
"namespace",
telnyx.AIMemoryNamespaceSettingPatchAllParams{
Summary: telnyx.String("summary"),
},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", response.Data)
}
package com.telnyx.sdk.example;
import com.telnyx.sdk.client.TelnyxClient;
import com.telnyx.sdk.client.okhttp.TelnyxOkHttpClient;
import com.telnyx.sdk.models.ai.memory.namespaces.settings.SettingPatchAllParams;
public final class Main {
private Main() {}
public static void main(String[] args) {
TelnyxClient client = TelnyxOkHttpClient.fromEnv();
SettingPatchAllParams params = SettingPatchAllParams.builder()
.summary("summary")
.build();
var response = client.ai().memory().namespaces().settings().patchAll("namespace", params);
}
}require "telnyx"
telnyx = Telnyx::Client.new(api_key: "My API Key")
response = telnyx.ai.memory.namespaces.settings.patch_all("namespace", summary: "summary")
puts(response)<?php
require_once dirname(__DIR__) . '/vendor/autoload.php';
use Telnyx\Client;
use Telnyx\Core\Exceptions\APIException;
$client = new Client(apiKey: getenv('TELNYX_API_KEY') ?: 'My API Key');
try {
$response = $client->ai->memory->namespaces->settings->patchAll(
'namespace',
summary: 'summary',
);
var_dump($response);
} catch (APIException $e) {
echo $e->getMessage();
}telnyx ai:memory:namespaces:settings patch-all \
--api-key 'My API Key' \
--namespace namespace \
--summary summarycurl --request PATCH \
--url https://api.telnyx.com/v2/ai/memory/namespaces/{namespace}/settings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"summary": {
"instructions": "Lead with the customer's plan tier. Keep it under 100 words."
}
}
EOF{
"data": {
"summary": {
"instructions": "Lead with the customer's plan tier. Keep it under 100 words."
}
}
}{
"errors": [
{
"code": "10009",
"title": "Authentication failed",
"detail": "Could not find any usable credentials in the request.",
"source": {
"pointer": "/"
},
"meta": {
"url": "https://developers.telnyx.com/docs/overview/errors/10009"
}
}
]
}{
"errors": [
{
"code": "namespace_not_found",
"detail": "no such namespace"
}
]
}{
"errors": [
{
"code": "invalid_instructions",
"detail": "instructions must be at most 2000 characters"
}
]
}{
"errors": [
{
"code": "upstream_error",
"detail": "the memory dataplane is unavailable"
}
]
}Authorizations
Telnyx API key
Path Parameters
The namespace. default exists for every organization.
Body
application/json
Summary settings to change. Omit to change nothing.
Show child attributes
Show child attributes
Response
The settings as stored
A namespace's settings, grouped by what they affect.
Show child attributes
Show child attributes
Was this page helpful?
JavaScript
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
const response = await client.ai.memory.namespaces.settings.patchAll('namespace', {
summary: 'summary',
});
console.log(response.data);import os
from telnyx import Telnyx
client = Telnyx(
api_key=os.environ.get("TELNYX_API_KEY"), # This is the default and can be omitted
)
response = client.ai.memory.namespaces.settings.patch_all(
namespace="namespace",
summary="summary",
)
print(response.data)
package main
import (
"context"
"fmt"
"github.com/team-telnyx/telnyx-go"
"github.com/team-telnyx/telnyx-go/option"
)
func main() {
client := telnyx.NewClient(
option.WithAPIKey("My API Key"),
)
response, err := client.AI.Memory.Namespaces.Settings.PatchAll(
context.TODO(),
"namespace",
telnyx.AIMemoryNamespaceSettingPatchAllParams{
Summary: telnyx.String("summary"),
},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", response.Data)
}
package com.telnyx.sdk.example;
import com.telnyx.sdk.client.TelnyxClient;
import com.telnyx.sdk.client.okhttp.TelnyxOkHttpClient;
import com.telnyx.sdk.models.ai.memory.namespaces.settings.SettingPatchAllParams;
public final class Main {
private Main() {}
public static void main(String[] args) {
TelnyxClient client = TelnyxOkHttpClient.fromEnv();
SettingPatchAllParams params = SettingPatchAllParams.builder()
.summary("summary")
.build();
var response = client.ai().memory().namespaces().settings().patchAll("namespace", params);
}
}require "telnyx"
telnyx = Telnyx::Client.new(api_key: "My API Key")
response = telnyx.ai.memory.namespaces.settings.patch_all("namespace", summary: "summary")
puts(response)<?php
require_once dirname(__DIR__) . '/vendor/autoload.php';
use Telnyx\Client;
use Telnyx\Core\Exceptions\APIException;
$client = new Client(apiKey: getenv('TELNYX_API_KEY') ?: 'My API Key');
try {
$response = $client->ai->memory->namespaces->settings->patchAll(
'namespace',
summary: 'summary',
);
var_dump($response);
} catch (APIException $e) {
echo $e->getMessage();
}telnyx ai:memory:namespaces:settings patch-all \
--api-key 'My API Key' \
--namespace namespace \
--summary summarycurl --request PATCH \
--url https://api.telnyx.com/v2/ai/memory/namespaces/{namespace}/settings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"summary": {
"instructions": "Lead with the customer's plan tier. Keep it under 100 words."
}
}
EOF{
"data": {
"summary": {
"instructions": "Lead with the customer's plan tier. Keep it under 100 words."
}
}
}{
"errors": [
{
"code": "10009",
"title": "Authentication failed",
"detail": "Could not find any usable credentials in the request.",
"source": {
"pointer": "/"
},
"meta": {
"url": "https://developers.telnyx.com/docs/overview/errors/10009"
}
}
]
}{
"errors": [
{
"code": "namespace_not_found",
"detail": "no such namespace"
}
]
}{
"errors": [
{
"code": "invalid_instructions",
"detail": "instructions must be at most 2000 characters"
}
]
}{
"errors": [
{
"code": "upstream_error",
"detail": "the memory dataplane is unavailable"
}
]
}