Skip to main content

Replace a knowledge base

PUT 

/v1/agents/:agentId/knowledge-bases/:knowledgeBaseId

x-scope: "knowledge:write"

Replaces the name and content; tags change only when sent. A knowledge base can be shared by several agents and the change reaches all of them, so it is refused (403 shared_with_other_agents) unless the key can act on every agent using it. The answer's message_weight says what the agent now reads (Main Instructions, active knowledge, active attachments' text, in characters) and what one of its replies costs; when it has a notice, pass it on to the user.

Request​

Responses​

The knowledge base as it now is.

Response Headers
    X-Correlation-ID

    Correlation id for this request — paste into support tickets.