# 创建客服工作台账号

请求方式:POST

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

body参数

{
  "operating_user_id": "ChenYanXian",
  "customer_service_name": "hello3",
  "customer_service_account": "chenyx3",
  "customer_service_password": "123456",
  "assign_robot_list":[
    "accxVKv4nmCfoUvuAqH2bCs",
    "accUe5syej6K6QuLNZtl7vx"],
  "category_id":2001
}
字段 类型 必填 说明
operating_user_id string 操作员工的ww_user_id(圈量应用可见范围内)
customer_service_name string 客服名称
customer_service_account string 登录账号
customer_service_password string 登录密码
assign_robot_list array 分配给到客服的机器人列表;若传入robot_id则默认为分配资产模式;若为无资产模式则传空值;
category_id uint64 客服分组

返回值:

{
  "data": {
    "customer_service_account": "chenyx3",
    "customer_service_open_id": "accxdfd8djdfg7s",
    "invalid_robot_id_list": []
  },
  "errcode": 0,
  "errmsg": "",
  "hint": "TTxczIwySBb3JNUIYtsA"
}

返回说明

字段 类型 说明
errcode int 状态码,0为正常,非0代表错误
errmsg string 错误信息
customer_service_account string 登录账号,可变
customer_service_open_id string 客服id,唯一不变
hint string 请求日志ID

完整请求示例:

curl -X POST https://$basehost/gateway/eaopen/CreateCustomerServiceAccount \
     -H 'Content-Type: application/json; charset=UTF-8' \
     -H 'Token: c2NdxDHKXIJ5j1zrhJeq2eJEHjh9xxx' \
     -d '{
    "operating_user_id": "ChenYanXian",
    "customer_service_name": "hello3",
    "customer_service_account": "chenyx3",
    "customer_service_password": "123456",
     "assign_robot_list":[
     "accxVKv4nmCfoUvuAqH2bCs",
     "accUe5syej6K6QuLNZtl7vx"]
}'
最后更新时间: 2024/6/17 18:24:09