Querying Q&A Pair Details
Function
Query details about a specified Q&A pair.
URI
GET /v2/irobot/qapairs/{qa_pair_id}
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
qa_pair_id |
Yes |
String |
Specifies the Q&A pair ID. Minimum length: 0 Maximum length: 64 |
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
X-Auth-Token |
Yes |
String |
Specifies the user token. It can be obtained by calling the IAM API (value of X-Subject-Token in the response header). Minimum length: 1 Maximum length: 5000 |
|
x-service-key |
Yes |
String |
Specifies the flag for invoking the intelligent customer service. Minimum length: 1 Maximum length: 32 |
|
x-site |
No |
String |
Specifies the site flag. The options are 0 (Chinese mainland) and 1 (international). Minimum length: 0 Maximum length: 1 |
|
x-language |
No |
String |
Specifies the region language with a language abbreviation. The options are en-us and zh-cn. Minimum length: 0 Maximum length: 32 |
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
qapair |
QaPair object |
Specifies the details of the Q&A pair. |
|
error_code |
String |
Specifies the error code. Minimum length: 0 Maximum length: 32 |
|
error_msg |
String |
Describes the error. Minimum length: 0 Maximum length: 32 |
|
Parameter |
Type |
Description |
|---|---|---|
|
domain |
String |
Specifies the domain. Minimum length: 0 Maximum length: 200 |
|
link |
String |
Specifies the link. Minimum length: 0 Maximum length: 65535 |
|
question |
String |
Specifies the question. Minimum length: 0 Maximum length: 65535 |
|
answers |
Array of Answer objects |
Specifies the answer list. Array length: 0 - 65535 |
|
qa_pair_id |
String |
Specifies the Q&A pair ID. Minimum length: 0 Maximum length: 64 |
|
ex_questions |
Array of ExtendQuestion objects |
Specifies the list of extended questions. Array length: 0 - 65535 |
|
related_question_ids |
Array of strings |
Specifies the list of related questions. Minimum length: 0 Maximum length: 65535 Array length: 0 - 65535 |
|
Parameter |
Type |
Description |
|---|---|---|
|
content |
String |
Specifies the answer content. Minimum length: 0 Maximum length: 65535 |
|
id |
String |
Specifies the answer ID. Minimum length: 0 Maximum length: 64 |
|
tags |
Array of strings |
Specifies the label list. Minimum length: 0 Maximum length: 65535 Array length: 0 - 65535 |
|
answer_type |
String |
Specifies the answer type. Minimum length: 0 Maximum length: 10 Options: |
|
qa_flow_entry |
CbsFlowEntry object |
Specifies the process information related to the answer. |
Request Example
GET https://{endpoint}/v2/irobot/qapairs/pair-id
null
Response Example
Status code: 200
Code 200 is returned if the operation is successful.
{
"qapair" : {
"domain" : "ECS",
"link" : "link",
"question" : "test",
"qa_pair_id" : "pair-id"
}
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
Code 200 is returned if the operation is successful. |
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.