用于更新指定知识下的答案。

调试

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

请求参数

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

接口功能枚举值

RobotCode String 否 asdfa23424

机器人code

KnowledgeId Long 是 234213421

知识id

OperatorId String 否 2342134

操作用户id

OperatorName String 否 张三

操作用户名称

Solution Object 是

答案数据

SolutionId Long 是 134213342

答案id

KnowledgeId Long 否 435235324

知识id

SolutionType String 否 text

答案类型, "text":文本答案

SolutionSource String 否 TB

答案来源

SolutionContent String 否 sdfagasdgf

答案正文

Conditions Array 否

答案约束

KnowledgeId Long 否 23542345

知识id

SolutionId Long 是 1234234

答案id

ConditionType String 否 EffectiveMode

生效模式:EffectiveMode

ConditionValue String 否 disable

生效模式:"disable":全部不生效,"auto":全自动,"assistant":智能辅助,"enable":全部生效

ExtraContent String 否 扩展

答案扩展信息

SolutionVariables Array 否

答案变量

KnowledgeId Long 否 32534543

知识id

SolutionId Long 是 2354345

答案id

VariableName String 否 类型

变量名称

VariableType String 否 BASE

变量类型

返回数据

名称 类型 示例值 描述
RequestId String 5DEB93BE-E7CB-4115-AFBE-F2013948D71B

请求id

Success Boolean true

是否更新成功

Code String 200

返回code

Message String successful

返回信息

示例

请求示例

http(s)://[Endpoint]/?Action=UpdateSolution
&RobotCode=asdfa23424
&KnowledgeId=234213421
&OperatorId=2342134
&OperatorName=张三
&Solution={"SolutionId":134213342,"KnowledgeId":435235324,"SolutionType":"text","SolutionSource":"TB","SolutionContent":"sdfagasdgf","Conditions":[{"KnowledgeId":23542345,"SolutionId":1234234,"ConditionType":"EffectiveMode","ConditionValue":"disable"}],"ExtraContent":"扩展","SolutionVariables":[{"KnowledgeId":32534543,"SolutionId":2354345,"VariableName":"类型","VariableType":"BASE"}]}
&公共请求参数

正常返回示例

XML格式

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

<UpdateSolutionResponse>
    <RequestId>5DEB93BE-E7CB-4115-AFBE-F2013948D71B</RequestId>
    <Success>true</Success>
    <Code>200</Code>
    <Message>successful</Message>
</UpdateSolutionResponse>

JSON格式

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

{
  "RequestId" : "5DEB93BE-E7CB-4115-AFBE-F2013948D71B",
  "Success" : true,
  "Code" : "200",
  "Message" : "successful"
}

错误码

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

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