查询行业包知识列表。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求参数

名称 类型 是否必选 示例值 描述
Action String 是 ListPackageKnowledges

接口功能枚举值

PackageCode String 是 common

包code

PackageVersion String 是 1.0

包version

OperatorId String 否 10006

操作用户id

OperatorName String 否 张三

操作用户名称

RobotCode String 否 xxxxx

机器人code,接口冗余参数,无需传递

DecoupleVersion String 否 V1

解耦版本: V1 ,V2

V1:解耦前

V2:解耦后

调用方不传则默认值为V1

返回数据

名称 类型 示例值 描述
Knowledges Array of Knowledge

知识集合

KnowledgeId Long 100001

知识id

KnowledgeTitle String 好吃么

知识标题

KnowledgeStatus String online

"online":在用,"disabled":禁用

SceneKey String sw_haochi

场景key

KnowledgeDescription String 产品口味

知识描述

CreateTime String 2022-09-27 18:00:00

创建时间

ModifyTime String 2022-09-27 18:00:00

修改时间

CreateUserId String 10006

创建用户id

ModifyUserId String 10006

修改用户id

SimilarQuestions Array of SimilarQuestion

场景问法

SimilarQuestionId Long 1000012

问法id

SimilarQuestionTitle String 好吃不

示例问法标题

SimilarQuestionType String similar

"similar":场景正负例句,"sample":场景示例问法,"keyword":场景关键词

SimilarQuestionEffectType String positive

"positive":正向,"negative":负向

CreateTime String 2022-09-27 18:00:00

创建时间

ModifyTime String 2022-09-27 18:00:00

修改时间

CreateUserId String 10006

创建用户id

ModifyUserId String 10006

修改用户id

Solutions Array of Solution

答案

SolutionId Long 100001

答案id

KnowledgeId Long 100001

知识id

SolutionType String text

答案类型

text:文本知识

SolutionSource String BATCH_IMPORT_SOLUTION

答案来源。

BATCH_IMPORT_SOLUTION:批量导入答案

SolutionContent String 内容

答案文本

ExtraContent String ExtraContent

答案扩展文本

Conditions Array of Condition

约束

KnowledgeId Long 100001

知识id

SolutionId Long 100001

答案id

ConditionType String item

约束类型

item:关联商品

ConditionValue String 100001

约束值

RequestId String 5DEB93BE-E7CB-4115-AFBE-F2013948D71B

Id of the request

Success Boolean true

是否成功标示

Code String 200

返回code

Message String success

返回信息

示例

请求示例

http(s)://[Endpoint]/?Action=ListPackageKnowledges
&PackageCode=common
&PackageVersion=1.0
&OperatorId=10006
&OperatorName=张三
&RobotCode=xxxxx
&公共请求参数

正常返回示例

XML格式

HTTP/1.1 200 OK
Content-Type:application/xml

<ListPackageKnowledgesResponse>
    <Knowledges>
        <KnowledgeId>100001</KnowledgeId>
        <KnowledgeTitle>好吃么</KnowledgeTitle>
        <KnowledgeStatus>online</KnowledgeStatus>
        <SceneKey>sw_haochi</SceneKey>
        <KnowledgeDescription>产品口味</KnowledgeDescription>
        <CreateTime>2022-09-27 18:00:00</CreateTime>
        <ModifyTime>2022-09-27 18:00:00</ModifyTime>
        <CreateUserId>10006</CreateUserId>
        <ModifyUserId>10006</ModifyUserId>
        <SimilarQuestions>
            <SimilarQuestionId>1000012</SimilarQuestionId>
            <SimilarQuestionTitle>好吃不</SimilarQuestionTitle>
            <SimilarQuestionType>similar</SimilarQuestionType>
            <SimilarQuestionEffectType>positive</SimilarQuestionEffectType>
            <CreateTime>2022-09-27 18:00:00</CreateTime>
            <ModifyTime>2022-09-27 18:00:00</ModifyTime>
            <CreateUserId>10006</CreateUserId>
            <ModifyUserId>10006</ModifyUserId>
        </SimilarQuestions>
        <Solutions>
            <SolutionId>100001</SolutionId>
            <KnowledgeId>100001</KnowledgeId>
            <SolutionType>text</SolutionType>
            <SolutionSource>BATCH_IMPORT_SOLUTION</SolutionSource>
            <SolutionContent>内容</SolutionContent>
            <ExtraContent>ExtraContent</ExtraContent>
            <Conditions>
                <KnowledgeId>100001</KnowledgeId>
                <SolutionId>100001</SolutionId>
                <ConditionType>item</ConditionType>
                <ConditionValue>100001</ConditionValue>
            </Conditions>
        </Solutions>
    </Knowledges>
    <RequestId>5DEB93BE-E7CB-4115-AFBE-F2013948D71B</RequestId>
    <Success>true</Success>
    <Code>200</Code>
    <Message>success</Message>
</ListPackageKnowledgesResponse>

JSON格式

HTTP/1.1 200 OK
Content-Type:application/json

{
  "Knowledges" : [ {
    "KnowledgeId" : 100001,
    "KnowledgeTitle" : "好吃么",
    "KnowledgeStatus" : "online",
    "SceneKey" : "sw_haochi",
    "KnowledgeDescription" : "产品口味",
    "CreateTime" : "2022-09-27 18:00:00",
    "ModifyTime" : "2022-09-27 18:00:00",
    "CreateUserId" : "10006",
    "ModifyUserId" : "10006",
    "SimilarQuestions" : [ {
      "SimilarQuestionId" : 1000012,
      "SimilarQuestionTitle" : "好吃不",
      "SimilarQuestionType" : "similar",
      "SimilarQuestionEffectType" : "positive",
      "CreateTime" : "2022-09-27 18:00:00",
      "ModifyTime" : "2022-09-27 18:00:00",
      "CreateUserId" : "10006",
      "ModifyUserId" : "10006"
    } ],
    "Solutions" : [ {
      "SolutionId" : 100001,
      "KnowledgeId" : 100001,
      "SolutionType" : "text",
      "SolutionSource" : "BATCH_IMPORT_SOLUTION",
      "SolutionContent" : "内容",
      "ExtraContent" : "ExtraContent",
      "Conditions" : [ {
        "KnowledgeId" : 100001,
        "SolutionId" : 100001,
        "ConditionType" : "item",
        "ConditionValue" : "100001"
      } ]
    } ]
  } ],
  "RequestId" : "5DEB93BE-E7CB-4115-AFBE-F2013948D71B",
  "Success" : true,
  "Code" : "200",
  "Message" : "success"
}

错误码

HttpCode 错误码 错误信息 描述
500 InternalError The request processing has failed due to some unknown error. 内部服务出现错误

访问错误中心查看更多错误码。