- 开放平台须知
- 开放平台接口
- 巡检
- 主数据
- 获取授权信息
- 运营组织
- 门店信息
- 门店员工
- 公司员工
- 加盟商
- 岗位
- 查询所有员工POST
- 训练
- 费用单
- 表单
编辑公司员工
POST
/{{route}}/md/open/companyEmployee/updateCompanyEmployee
开放平台
最后修改时间:2025-05-06 07:11:52
请求参数
Query 参数
version
string
必需
示例值:
1
Header 参数
Authorization
string
可选
ent
string
可选
Content-Type
string
可选
默认值:
application/json
Body 参数application/json
employeeId
number
必需
employeeCode
string
必需
dingUserId
string
钉钉用户Id
employeeName
string
可选
phone
string
可选
relationships
array [object {5}]
可选
organizeId
number
必需
organizeCode
string
必需
roleId
number
必需
roleCode
string
必需
isDefault
integer
必需
entryDate
string
可选
deptName
string
可选
sex
string
性别
certCode
string
可选
birthday
string
可选
folk
string
民族|限定长度6
registerdPlace
string
可选
currentlyPlace
string
可选
tagNames
array[string]
员工标签名称
示例
{
"employeeId": 346200626692175,
"employeeCode": "",
"folk": "",
"relationships": [
{
"roleId": null,
"roleCode": "8",
"organizeId": null,
"organizeCode": "1",
"isDefault": 1
},
{
"roleId": null,
"roleCode": "8",
"organizeId": null,
"organizeCode": "1510",
"isDefault": 0
},
{
"roleId": null,
"roleCode": "8",
"organizeId": null,
"organizeCode": "2884",
"isDefault": 0
}
],
"employeeName": "钟测试",
"phone": "13125664523",
"certCode": "",
"currentlyPlace": "",
"birthday": "1989-10-18",
"deptName": "",
"dingUserId": "",
"entryDate": "2018-07-16",
"sex": "1",
"registerdPlace": "地址"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location -g --request POST '/{{route}}/md/open/companyEmployee/updateCompanyEmployee?version=1&version=' \
--header 'Authorization;' \
--header 'ent;' \
--header 'ent;' \
--header 'Content-Type: application/json' \
--data-raw '{
"employeeId": 346200626692175,
"employeeCode": "",
"folk": "",
"relationships": [
{
"roleId": null,
"roleCode": "8",
"organizeId": null,
"organizeCode": "1",
"isDefault": 1
},
{
"roleId": null,
"roleCode": "8",
"organizeId": null,
"organizeCode": "1510",
"isDefault": 0
},
{
"roleId": null,
"roleCode": "8",
"organizeId": null,
"organizeCode": "2884",
"isDefault": 0
}
],
"employeeName": "钟测试",
"phone": "13125664523",
"certCode": "",
"currentlyPlace": "",
"birthday": "1989-10-18",
"deptName": "",
"dingUserId": "",
"entryDate": "2018-07-16",
"sex": "1",
"registerdPlace": "地址"
}'
返回响应
🟢200编辑公司员工-成功
application/json
Body
message
string
必需
status
integer
必需
示例
{
"message": "编辑成功!",
"status": 0
}