控制台-观众-更新

接口URL

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

请求方式

POST

Content-Type

form-data

请求Query参数

参数 示例值 是否必填 参数描述
c audience 必填 -
a update 必填 -
timestamp 1607677497 必填 -
access_key abc 必填 -
sign 4a875d2ef2a194d11a6c31f4a4568d791e3ae067 必填 -

请求Body参数

参数 示例值 是否必填 参数描述
id 415969 必填 观众ID
name 更新一个观众 必填 观众姓名
email testau@qq.com 选填 邮箱
mobile 13333333553 必填 手机号码
departments [1251236] 必填 部门
job_number - 选填 工号
position - 选填 职位
password 123456 必填 密码
password_repeat 123456 必填 重复密码

成功响应示例

{
    "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"
            }
        ]
    }
}
参数 示例值 参数描述
code 200 响应状态码
msg success 提示信息
data - json array
data.*.id 415969 观众ID
data.*.account_id 297 帐户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_py CeShiYiGeGuanZhong 姓名拼音
data.*.name_first csyggz 姓名首字母
data.*.position - 职位
data.*.avatar - 头像
data.*.mobile 13333333553 手机号
data.*.tel - tel
data.*.work_place - workplace
data.*.remark - -
data.*.email testau@126.com 邮箱
data.*.device - -
data.*.ip - -
data.*.extattr - -
data.*.created_at 2020-12-15 11:30:14 创建时间
data.*.updated_at 2020-12-15 11:30:14 更新时间
data.*.deleted_at -0001-11-30 00:00:00 删除时间
data.*.departments - json array
data..departments..id 1251236 部门ID
data..departments..account_id 297 帐户ID
data..departments..parent_id -1 父级部门ID
data..departments..ding_id 0 ding_id
data..departments..ding_parent_id 0 ding_parent_id
data..departments..name 杭州雅顾科技有限公司 部门名
data..departments..name_py HangZhouYaGuKeJiYouXianGongSi 部门拼音
data..departments..name_first hzygkjyxgs 部门名首字母
data..departments..order - 排序值
data..departments..created_at 2018-03-19 10:36:02 创建时间
data..departments..updated_at 2018-03-19 10:36:02 更新时间
data..departments..deleted_at -0001-11-30 00:00:00 删除时间

results matching ""

    No results matching ""