# 修改客服账号机器人

请求方式:POST

请求地址:https://$basehost/gateway/eaopen/UpdateCustomerRobot

body参数

{
	"customer_service_account": "pzer",
	"assign_robot_list": ["accuQiY9a1jbTwinD"],
	"update_type": 1
}
字段 类型 必填 说明
customer_service_account string 客服登录账号
customer_service_open_id string 客服id,customer_service_account、customer_service_open_id二选一必传一个
assign_robot_list array 机器人open id 列表
update_type int 修改类型 ,1:新增机器人 2:移除机器人

返回值:

{
	"failed_list": [
		{
			"robot_id": "accuQiY9a1jbTwinD",
			"reason": "该机器人"
		}
	],
    "errcode": 0,
    "errmsg": "",
    "hint": "vwS9S99xyhcjaANddysA"
}

返回说明

字段 类型 说明
failed_list array 修改失败的机器人列表,失败原因见返回说明
failed_list.robot_id string 修改失败的机器人id
failed_list.reason string 修改失败的原因
errcode int 状态码,0为正常,非0代表错误
errmsg string 错误信息
hint string 请求日志ID

完整请求示例:

curl -X POST https://$basehost/gateway/eaopen/UpdateCustomerRobot \
     -H 'Content-Type: application/json; charset=UTF-8' \
     -H 'Token: c2NdxDHKXIJ5j1zrhJeq2eJEHjh9xxx' \
     -d '{
   		"customer_service_account": "pzer",
	    "assign_robot_list": ["accuQiY9a1jbTwinD"],
	    "update_type": 1
    }'
最后更新时间: 2024/11/11 20:10:19