Obtaining the Knowledge Base ID for Document Q&A
Function
Obtain the ID of the knowledge base used for document Q&A.
URI
GET /v1/koosearch/file-answer-knowledge
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
X-Auth-Token |
Yes |
String |
Definition: Token used for API authentication. For details about how to obtain the token, see Obtaining an IAM User Token. Constraints: N/A Value range: N/A Default value: N/A |
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
repo_id |
String |
Definition: Knowledge base ID. Value range: N/A |
Status code: 400
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Definition: Value range: N/A |
|
error_msg |
String |
Definition: Error message. Value range: N/A |
Status code: 500
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Definition: Value range: N/A |
|
error_msg |
String |
Definition: Error message. Value range: N/A |
Example Requests
Obtain the ID of the knowledge base used for document Q&A.
/v1/koosearch/file-answer-knowledge
Example Responses
Status code: 200
Obtain the ID of the knowledge base used for document Q&A.
{
"repo_id" : "1235abc"
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
Obtain the ID of the knowledge base used for document Q&A. |
|
400 |
Incorrect request body parameter. |
|
500 |
Internal error. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot