Update knowledge base state
Updates the state of a knowledge base.
The new Qoder CN documentation site is now available. Content on this site may not reflect the latest product features and changes. Visit docs.qoder.cn for the latest product documentation.
|
Supported editions |
Enterprise Dedicated Edition, Enterprise Standard Edition |
Service endpoints
Get the service endpoint and replace {domain} in the API request syntax with your endpoint.
Authorization
|
Product |
Resource |
Required permission |
|
AI Coding Assistant |
knowledge base |
read and write |
Request syntax
POST https://{domain}/oapi/v1/lingma/organizations/{organizationId}/knowledgeBases/{kbId}/updateState
Request |
Enterprise Standard EditionRequest example
Enterprise Dedicated EditionRequest example
|
Request headers |
|
|
x-yunxiao-token The access token for authentication. To learn how to obtain a token, see access token. Example: pt-0fh3****0fbG_35af****0484. |
|
Request parameters |
|
|
organizationId The organization ID. You can go to the Organization Management console's Basic Information page to obtain the organizationId. |
|
|
kbId The ID of the knowledge base. To obtain this ID, see List knowledge bases. |
|
|
state The state of the knowledge base. Valid values:
|
Response parameters |
Response example
|
|
success Indicates whether the request was successful. |
Error codes
For more information, see Error code center.