- 开放平台-组织人事接口
- 开放平台认证步骤
- 同步人员POST
- 同步部门POST
- 同步分部POST
- 同步岗位POST
- 同步条件矩阵数据POST
- 同步兼职信息POST
- 封存部门POST
- 解封部门POST
- 人员返聘POST
- 基本信息自定义字段信息POST
- 部门自定义字段信息POST
- 分部自定义字段信息POST
- 人员 查询POST
- 组织查询POST
- 岗位查询POST
- 条件矩阵-保存数据POST
- 条件矩阵-删除数据POST
- 条件矩阵-条件查询取值POST
- 条件矩阵-生产视图创建语句(兼容E9)POST
- 批量新增职务POST
- 同步职称POST
- 群组列表查询POST
- 批量删除群组POST
- 新增或修改群组POST
- 批量封存/解封群组POST
- 群组成员查询接口POST
- 新增群组成员POST
- 删除群组成员POST
- 添加群组可见范围POST
- 更新群组可见范围项POST
- 删除群组可见范围项POST
- 根据组织或者人员查询全路径数据POST
- 同步人力共享权限数据POST
- 同步职级POST
- 同步外部联系人POST
- 同步外部企业POST
- 同步外部部门POST
- 同步虚拟维度人员POST
- 查询虚拟维度人员POST
同步外部部门
开发中
POST
/api/hrm/restful/syncExternalDepartment
1.
请求参数
Cookie 参数
ETEAMSID
string
可选
默认值:
PCACCOUNT_e59539ab1f9e66971db08e2dc55c77ce-3H4B9AJO05N808
Body 参数application/json
data
array [object {6}]
必需
name
string
部门名称
fullname
string
部门全称
disporder
number
显示顺序
description
string
备注
parent
string
上级部门
subcompanyid
string
所属企业
dataRule
object
数据规则
department
string
部门规则
subcompany
string
企业规则
apiTaskId
string
任务号
optId
string
操作者
extKey
string
指定需要额外返回内容的key
当指定后,返回内容将提供:extKeyMap;是map对象,并返回指定的key和其内容;
"extKeyMap": {
"uuid": "1234"
}
virtualId
number
维度id
1.
或者
2.
示例
{
"access_token": "00098fd529fc19d258d4a25087167618",
"data": [
{
"name": "经理室",
"fullname": "经理室full",
"parent":"人事部",
"subcompanyid":"外部泛微",
"disporder": 5,
"description": "描述"
}
],
"dataRule": {
"subcompany": "name",
"department": "name"
},
"apiTaskId": "task1",
"optId": "1040027954357846017",
"extKey": "outkey",
"virtualId": "900030746512072704"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/hrm/restful/syncExternalDepartment' \
--header 'Cookie: ETEAMSID=PCACCOUNT_e59539ab1f9e66971db08e2dc55c77ce-3H4B9AJO05N808' \
--header 'Content-Type: application/json' \
--data-raw '{
"access_token": "00098fd529fc19d258d4a25087167618",
"data": [
{
"name": "经理室",
"fullname": "经理室full",
"parent":"人事部",
"subcompanyid":"外部泛微",
"disporder": 5,
"description": "描述"
}
],
"dataRule": {
"subcompany": "name",
"department": "name"
},
"apiTaskId": "task1",
"optId": "1040027954357846017",
"extKey": "outkey",
"virtualId": "900030746512072704"
}'
返回响应
🟢200成功
application/json
Body
code
integer
api状态
msg
string
描述
status
boolean
状态
data
array [object {5}]
必需
keyValue
string
数据唯一字段值
operate
string
同步操作类型
status
string
状态
errcode
string
失败原因
needRepush
boolean
可选
示例
{"message":{"errcode":"0","errmsg":"success"},"data":[{"keyValue":"经理室","id":8513466224574465,"operate":"ADD","status":"SUCCESS","errcode":"SUCCESS","needRepush":false}]}
修改于 2025-01-15 07:13:40