- 开放平台须知
- 开放平台接口
- 巡检
- 主数据
- 获取授权信息
- 运营组织
- 门店信息
- 门店员工
- 公司员工
- 加盟商
- 岗位
- 查询所有员工POST
- 训练
- 费用单
- 表单
复职
POST
/{{route}}/md/open/companyEmployee/comReinstated
开放平台
最后修改时间:2024-09-05 02:11:54
请求参数
Query 参数
version
string
必需
示例值:
1
Header 参数
Authorization
string
必需
示例值:
{{Authorization}}
ent
string
必需
示例值:
{{ent}}
Content-Type
string
可选
默认值:
application/json
Body 参数application/json
employeeId
number
必需
employeeCode
string
必需
relationships
array [object {5}]
可选
organizeId
number
必需
organizeCode
string
必需
roleId
number
必需
roleCode
string
必需
isDefault
integer
必需
示例
{
"employeeId": null,
"employeeCode": "DR05",
"relationships": [
{
"organizeId": 1,
"organizeCode": "",
"roleId": null,
"roleCode": "8",
"isDefault": 1
}
]
}
示例代码
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/comReinstated?version=1&version=' \
--header 'Authorization: {{Authorization}}' \
--header 'ent: {{ent}}' \
--header 'ent;' \
--header 'Content-Type: application/json' \
--data-raw '{
"employeeId": null,
"employeeCode": "DR05",
"relationships": [
{
"organizeId": 1,
"organizeCode": "",
"roleId": null,
"roleCode": "8",
"isDefault": 1
}
]
}'
返回响应
🟢200成功
application/json
Body
message
string
必需
status
integer
必需
示例
{
"message": "复职成功!",
"status": 0
}