修改客户信息

请求地址

/api/moduleData/update

请求头

default-product-id: 具体的产品线id值

请求方法

POST

方法说明

修改客户信息

输入信息

字段 类型 必填 说明
mid bigint 模块id,固定为:347772778973233152
id bigint 客户id
name string 客户名称
own_id bigint 所属人,未填写所属人则默认为当前api请求用户
phone string 手机号
source bigint 来源id
xxxx1 自定义添加的字段值, 每个模块的字段均不同
xxxx2 自定义添加的字段值, 每个模块的字段均不同

注意上面的xxxx1,xxxx2 为你系统里该模块的表单字段,请根据实际情况填写, 开发时,可打开浏览器的调试模块,添加一条具体的模块数据,抓取相关的请求体即可

输入示例

{
"name":"单单",
"source":"514465485002113024",
"note":"",
"phone":"18888282822",
"textarea_1680158327352":"",
"select_1680162080347":"484020435193692160",
"input_1680509561692":"",
"mid":"347772778973233152",
"id":"688346218203447296"
}

返回信息

字段 类型 说明
item object 信息
      id bigint id
      title string 数据标题
      product_line_id bigint 产品线id
      created_at datetime 创建时间
      created_id object 创建人信息
      updated_at datetime 修改时间
      updated_id object 修改人信息
      deleted_at datetime 数据删除时间
      own_id object 所属人信息
      last_own_id object 上一个所属人
      is_public int 数据是否在公海池1=是,0=否
      last_seas_at datetime 最后一次释放到公海池的时间
      move_seas_times int 公海池回收次数
      move_seas_type int 回收到公海类型 1=系统回收,2=人工释放
      last_follow_log string 最后跟进内容
      last_follow_at string 最后跟进事件
      last_deal_at datetime 最后交易时间
      last_deal_money decimal 最后交易金额
      assign_at datetime 所属人获得客户时间
      name string 客户名称
      life_cycle_id object 所属生命周期信息
      last_life_cycle_id int 上一次生命周期id
      source object 来源
      phone string 手机号
      note string 备注
      is_clue int 是否来自线索池1=是,0=否
      clue_user object 线索首次领取人
      next_follow_at datetime 下次跟进事件
      is_lock int 是否锁定1=是,0=否
      tags array 标签信息
      canedit boolean 当前登录用户是否可编辑该数据
      candelete boolean 当前登录用户是否可删除该数据
      teaminfo boolean 团队管理信息
      clue_id_unique string 第三方平台线索唯一id
      api_setting_id bigint api接口id
      api_platform string 第三方接口平台名称
      clue_ocpc_data object 线索回传数据
      clue_is_black int 线索是否在黑名单
      first_assign_diff datetime 线索首次领取时间
      first_assign_time int 线索首次领取时间和创建时间差值,单位为秒
      xxx 其他自定义字段…

返回示例

{
    "code": 200,
    "data": {
        "item": {
            "name": "赵六",
            "source": {
                "id": "484017950731272192",
                "name": "熟人介绍",
                "group_id": "356019519744901120",
                "is_active": true,
                "color": "#606266",
                "sort_num": 200,
                "is_default": 0
            },
            "note": "",
            "phone": "13763738383",
            "textarea_1680158327352": "",
            "select_1680162080347": [],
            "input_1680509561692": "",
            "id": "688343387861942272",
            "own_id": [],
            "is_clue": 1,
            "is_public": 0,
            "created_id": {
                "id": "1",
                "name": "超级管理员",
                "avatar_url": ""
            },
            "updated_id": {
                "id": "1",
                "name": "超级管理员",
                "avatar_url": ""
            },
            "product_line_id": "688051545102614528",
            "title": "赵六",
            "updated_at": "2024-10-19 11:10:52",
            "created_at": "2024-10-19 11:10:52",
            "tags": [],
            "_team_info": false,
            "_can_edit": true,
            "_can_del": true,
            "_flow": false,
            "is_favorite": false,
            "_coming_free": false,
            "_left_days": 0,
            "clue_is_assign": false,
            "client_position": "clue",
            "last_own_id": [],
            "last_seas_at": null,
            "move_seas_times": null,
            "move_seas_type": null,
            "last_follow_log": null,
            "last_follow_at": null,
            "last_deal_at": null,
            "last_deal_money": null,
            "assign_at": null,
            "deleted_id": [],
            "life_cycle_id": [],
            "clue_user": [],
            "first_assign_time": null,
            "first_assign_diff": null,
            "is_lock": null,
            "clientListAndSeas": null,
            "next_follow_at": null,
            "clue_id_unique": null,
            "clue_ocpc_data": {
                "value": [],
                "display": ""
            },
            "deleted_at": null,
            "_flow_node_name": null,
            "_flow_status": null
        }
    },
    "message": ""
}
作者:admin  创建时间:2024-10-17 14:27
最后编辑:admin  更新时间:2024-10-19 12:15