员工新增、更新事件
POST
{{接收回调的地址}}请求参数
Body 参数application/json
userid
string
员工id
name
string
员工姓名
mobile
string
手机号
position
string
职位
gender
integer
可选
性别: 0-未选择 1-男 2-女
email
string
邮箱
avatar
string
头像url
telephone
string
座机
alias
string
别名
status
integer
可选
状态:1=已激活,2=已禁用,4-未激活,5=退出企业
saas_status
integer
可选
saas平台状态 0-禁用 1-正常
示例
{
"userid": "53",
"name": "式着节列意因",
"alias": "aliqua magna",
"telephone": "18154448251",
"position": "commodo ea",
"saas_status": 13,
"email": "c.eyvfq@qq.com",
"mobile": "18172742631",
"gender": 85,
"status": 36,
"avatar": "http://dummyimage.com/100x100"
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
object {0}
示例
{
"header": {
"event_type": "user_update", // 新增为user_insert
"time_stamp": "1611580672000",
"to_app": "wloa4376fe67dc041d474a79513ed70ae3db"
},
"event": {
"userid": "suyore",
"name": "张三",
"mobile": "15517101234",
"position": "",
"gender": 1,
"email": "abc@gmail.com",
"avatar": "http://xxx.jpg",
"telephone": "",
"alias": "",
"status": 1,
"saas_status": 1
}
}
最后修改时间: 2 年前