PATCH
/
v4
/
knowledge-bases
/
{knowledge_base_id}
import SGPClient from 'sgp';

const client = new SGPClient({
  apiKey: process.env['SGP_API_KEY'], // This is the default and can be omitted
});

async function main() {
  const knowledgeBase = await client.knowledgeBases.update('knowledge_base_id');

  console.log(knowledgeBase.knowledge_base_name);
}

main();
{
  "knowledge_base_name": "<string>",
  "metadata": {}
}

Authorizations

x-api-key
string
header
required

Path Parameters

knowledge_base_id
string
required

Body

application/json
knowledge_base_name
string

The name of the knowledge base

metadata
object

Metadata associated with the knowledge base

Response

200
application/json
Successful Response
knowledge_base_name
string

The name of the knowledge base

metadata
object

Metadata associated with the knowledge base