控制台-观众-更新

优质
小牛编辑
127浏览
2023-12-01

控制台-观众-更新

接口URL

{youke-url}/console/Index.php?c=audience&a=update&timestamp=1607677497&access_key=abc&sign=4a875d2ef2a194d11a6c31f4a4568d791e3ae067

请求方式

POST

Content-Type

form-data

请求Query参数

参数示例值是否必填参数描述
caudience必填-
aupdate必填-
timestamp1607677497必填-
access_keyabc必填-
sign4a875d2ef2a194d11a6c31f4a4568d791e3ae067必填-

请求Body参数

参数示例值是否必填参数描述
id415969必填观众ID
name更新一个观众必填观众姓名
emailtestau@qq.com选填邮箱
mobile13333333553必填手机号码
departments[1251236]必填部门
job_number-选填工号
position-选填职位
password123456必填密码
password_repeat123456必填重复密码

成功响应示例

{
    "code": 200,
    "msg": "success",
    "data": {
        "id": 415969,
        "account_id": 297,
        "ding_id": null,
        "ding_user_id": null,
        "ding_union_id": null,
        "outer_id": null,
        "job_number": "",
        "name": "更新一个观众",
        "name_py": "GengXinYiGeGuanZhong",
        "name_first": "gxyggz",
        "position": "",
        "avatar": null,
        "mobile": "13333333553",
        "tel": null,
        "work_place": null,
        "remark": null,
        "email": "testau@qq.com",
        "device": null,
        "ip": null,
        "extattr": null,
        "created_at": "2020-12-15 11:30:14",
        "updated_at": "2020-12-15 11:51:09",
        "deleted_at": "-0001-11-30 00:00:00",
        "departments": [
            {
                "id": 1251236,
                "account_id": 297,
                "parent_id": -1,
                "ding_id": 0,
                "ding_parent_id": 0,
                "name": "杭州雅顾科技有限公司",
                "name_py": "HangZhouYaGuKeJiYouXianGongSi",
                "name_first": "hzygkjyxgs",
                "order": null,
                "created_at": "2018-03-19 10:36:02",
                "updated_at": "2018-03-19 10:36:02",
                "deleted_at": "-0001-11-30 00:00:00"
            }
        ]
    }
}
参数示例值参数描述
code200响应状态码
msgsuccess提示信息
data-json array
data.*.id415969观众ID
data.*.account_id297帐户ID
data.*.ding_id-ding_id
data.*.ding_user_id-ding_user_id
data.*.outer_id-outer_id
data.*.ding_union_id-ding_union_id
data.*.job_number-工号
data.*.name测试一个观众帐户名称
data.*.name_pyCeShiYiGeGuanZhong姓名拼音
data.*.name_firstcsyggz姓名首字母
data.*.position-职位
data.*.avatar-头像
data.*.mobile13333333553手机号
data.*.tel-tel
data.*.work_place-workplace
data.*.remark--
data.*.emailtestau@126.com邮箱
data.*.device--
data.*.ip--
data.*.extattr--
data.*.created_at2020-12-15 11:30:14创建时间
data.*.updated_at2020-12-15 11:30:14更新时间
data.*.deleted_at-0001-11-30 00:00:00删除时间
data.*.departments-json array
data..departments..id1251236部门ID
data..departments..account_id297帐户ID
data..departments..parent_id-1父级部门ID
data..departments..ding_id0ding_id
data..departments..ding_parent_id0ding_parent_id
data..departments..name杭州雅顾科技有限公司部门名
data..departments..name_pyHangZhouYaGuKeJiYouXianGongSi部门拼音
data..departments..name_firsthzygkjyxgs部门名首字母
data..departments..order-排序值
data..departments..created_at2018-03-19 10:36:02创建时间
data..departments..updated_at2018-03-19 10:36:02更新时间
data..departments..deleted_at-0001-11-30 00:00:00删除时间