批量为员工启用系统
POST https://qw-openapi-tx.dustess.com/employee/v1/scrm/enable?accessToken=
Content-Type: application/json
参数名 | 类型 | 说明 | 是否必须 |
---|---|---|---|
uids | String[] | 尘锋员工uid,和员工编号二选一传递,必传其一 | true |
empCodes | String[] | 尘锋员工编号,和员工uid二选一传递,必传其一 | true |
json
- Request-Example:{
"empCodes":["1002","1005"]
}
参数名 | 类型 | 说明 |
---|---|---|
success | Bool | 请求成功失败标识 |
code | Int | 响应码 |
msg | String | 响应信息 |
data | Object | 数据信息 |
data.operateFinished | Bool | 员工权限处理情况,处理成功为true,处理失败不会返回当前key(外层success会返回false) |
trace_id | String | 上下文链路id |
json
- Response-Example:{
"code":0,
"success": true,
"msg": "OK",
"data": {
"operateFinished":true
},
"trace_id": "61e8e69445f64652"
}
json
- Response-Example:{
"code":500402,
"success": false,
"msg": "paramCheckError,query employees by uids not found and data",
"data": {
},
"trace_id": "61e8e69445f64652"
}