简要描述:

创建机器人

接口版本:

版本号 制定人 制定日期 修订日期
1.0 王力 2019-04-23 2019-04-23

接口说明:

请求方式 接口地址 Content-Type
POST /bot/add none

请求参数说明:

名称 提交 必填 数据类型 参数说明
customerId json N String 机器人所属的用户ID
botId json N String 机器人模板ID
appName json N String 机器人名称
description json N String 机器人描述
createBy json N String 创建者ID

请求参数示例:

{
    "appName": "巴拉巴拉222233333",
    "customerId": "1234",
    "botId": "c794f6a0-b4fd-4402-b1fb-0880b7be7e9b",
    "createBy": "1234"
}

返回参数说明:

参数名 必填 类型 说明
errorCode int 错误码(0表示成功)
errorMsg string 描述信息
data 对象 数据内容,内容参考数据设置表AppModel
count 数值 数量

返回示例:

正确时返回

{
    "errorCode": 0,
    "data": {
        "createTime": "2019-04-23 15:11:08",
        "createBy": "1234",
        "robotType": "INTEL_ROBOT",
        "customerId": "1234",
        "terminal": true,
        "_id": "58dff270-857b-4973-b87e-bf549aad1935",
        "attribute": {},
        "autoIntentParamConfig": false,
        "faqId": "",
        "wechatAuth": false,
        "botId": "c794f6a0-b4fd-4402-b1fb-0880b7be7e9b",
        "status": "Normal",
        "defaultResponses": [],
        "appLevel": "PRIVATE",
        "appKey": "710365ea-4745-4b8f-992c-882dbb708768",
        "sessionResetTime": 3600,
        "intentDetectionThreshold": 1,
        "headUrl": "",
        "actionTimeoutTime": 3600,
        "appName": "巴拉巴拉222233333"
    },
    "errorMsg": "请求成功",
    "count": 1
}

错误时返回

{
    "errorCode": 100,
    "errorMsg": "系统错误"
}

备注:

  • 更多返回错误代码请看首页的错误代码描述
文档更新时间: 2019-04-29 10:24   作者:彭湃