Trillet AI logo

Update Knowledge Base

Update the name or description of an existing knowledge base.

PUThttps://api.trillet.ai/v1/api/knowledgebase/{id}

Only name and description can be changed here. To change the content, use Add Text or Upload File.

Headers

x-workspace-idstringrequired

Workspace identifier for the API.

Path Parameters

idstringrequired

The unique identifier of the knowledge base to update.

Request Body

namestring

Updated name for the knowledge base.

descriptionstring

Updated description for the knowledge base.

Response

200 with a confirmation message. The updated knowledge base is not returned; call Get Knowledge Base to read it back. Sending neither field also returns 200 and changes nothing.

messagestring

Always Knowledge base updated successfully.

Errors

StatusBodyWhen
400{"message": "X-Workspace-ID header is required"}No x-workspace-id
500{"message": "..."}Anything else
{
  "message": "Knowledge base updated successfully"
}

Last updated on