All Products
Search
Document Center

PolarDB:UpdateKnowledgeBase

Last Updated:Sep 01, 2026

Updates a knowledge base.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request syntax

POST  HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

RegionId

string

Yes

The region ID.

cn-beijing

KnowledgeBaseId

string

Yes

The unique ID of the knowledge base.

pkb-xxxxx

Name

string

No

The name of the knowledge base.

testName

Description

string

No

The description of the knowledge base.

test desc

SearchMode

string

No

The search mode. Valid values:

  • balanced (default): balanced mode.

  • precise: precise mode.

  • semantic: semantic mode.

  • knn: KNN mode.

  • rrf: reciprocal rank fusion (RRF) mode.

balanced

Response elements

Element

Type

Description

Example

object

Schema of Response

RequestId

string

Id of the request

EB07CFF0-D8A4-5C76-AED7-D00E26FC2***

KnowledgeBaseId

string

The unique ID of the knowledge base.

pkb-xxxxx

Examples

Success response

JSON format

{
  "RequestId": "EB07CFF0-D8A4-5C76-AED7-D00E26FC2***",
  "KnowledgeBaseId": "pkb-xxxxx"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.