Update a namespace for the authenticated organization. If there is no change, return it as it is.
TypeScript
import { Agentset } from "agentset"; const agentset = new Agentset({ apiKey: 'agentset_xxx' }); const updatedNamespace = await agentset.namespaces.update("ns_xxx", { name: "Updated Knowledge Base", }); console.log(updatedNamespace);
{ "success": true, "data": { "id": "<string>", "name": "<string>", "slug": "<string>", "organizationId": "<string>", "createdAt": "<string>", "embeddingConfig": { "provider": "<string>", "model": "text-embedding-3-small", "apiKey": "<string>" }, "vectorStoreConfig": { "provider": "<string>" } } }
Default authentication mechanism
The id of the namespace (prefixed with ns_)
"ns_123"
1 - 64
2 - 48
The updated namespace
Show child attributes