Create a knowledge base
Creates a Qoder CN 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 permissions |
|
Qoder CN |
knowledge base |
Read and write |
Request syntax
POST https://{domain}/oapi/v1/lingma/organizations/{organizationId}/knowledgeBases
Request |
Enterprise standard editionCreate knowledge base
Enterprise dedicated editionCreate knowledge base
|
Request headers |
|
|
x-yunxiao-token Your personal access token. For more information, see personal access token. Example: pt-0fh3****0fbG_35af****0484. |
|
Request parameters |
|
|
organizationId The ID of the organization. This is a path parameter. To get the ID, go to the Organization Management Backend, open the Basic Information page, and get your organization ID. |
|
|
name The name of the knowledge base. The name must be no longer than 100 characters. |
|
|
sceneType The use case for the knowledge base. Valid values:
|
|
|
accessLevel The visibility of the knowledge base. Valid values:
|
|
|
creatorId The creator's ID. To get this ID, see Query member list. |
|
|
organizationId The ID of the organization. This is a body parameter, and its value must match the ID in the request path. To get the ID, go to the Organization Management Backend, open the Basic Information page, and get your organization ID. |
|
|
description A description of the knowledge base. The description must be no longer than 200 characters. |
Response parameters |
Response example
|
|
kbId The ID of the created knowledge base. |
Error codes
For more information, see Error code center.