- 开放平台-组织人事接口
- 开放平台认证步骤
- 同步人员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
/api/hrm/restful/syncMatrixData
1.
2.
请求参数
Cookie 参数
ETEAMSID
string
可选
默认值:
PCACCOUNT_c0e81dfa2f0a1ccf1971836b809a5135-BF90B6HP342K4
Body 参数application/json
matrixName
string
矩阵名称
dataList
array [object {3}]
矩阵数据
dataId
string
行id
1.
2.
delete_type
integer
删除标识
[矩阵列名称]
string
矩阵列数据
例如: {
dataId:"1112233",
"部门负责人":["张三","王五"]
}
1.
2.
optId
string
操作者
taskId
string
当前请求任务号
extKeyField
string
外键字段
dataRule
object
数据规则
employee
string
人员规则
employeeScopeConfig
string
人员范围配置
提供 onlyMainAccount : 仅主账号
提供 onlyNormal: 仅在职 人员
department
string
部门规则
subcompany
string
分部规则
示例
{
"matrixName": "自定义矩阵",
"dataList": [
{
"分部": "非混编转混编团队A",
"负责人": [
"张三",
"李四"
],
"分管领导": "张三",
"outkey": "xxxxxxx001"
}
],
"optId": "1054142604262465545",
"taskId": "33",
"extKeyField": "outkey",
"dataRule": {
"employee": "username",
"subcompany": "name"
}
}
示例代码
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/syncMatrixData' \
--header 'Cookie: ETEAMSID=PCACCOUNT_c0e81dfa2f0a1ccf1971836b809a5135-BF90B6HP342K4' \
--header 'Content-Type: application/json' \
--data-raw '{
"matrixName": "自定义矩阵",
"dataList": [
{
"分部":"非混编转混编团队A",
"负责人":["张三","李四"],
"分管领导":"张三",
"outkey":"xxxxxxx001"
}
],
"optId": "1054142604262465545",
"taskId": "33",
"extKeyField": "outkey",
"dataRule": {
"employee":"username",
"subcompany":"name"
}
}'
返回响应
🟢200成功
application/json
Body
message
object
可选
errcode
string
接口状态
errmsg
string
接口说明
data
array [object {5}]
必需
keyValue
string
行id
id
number
行id
operate
string
操作
status
string
状态
extKeyMap
object
外键数据
示例
{
"message": {
"errcode": "0",
"errmsg": "success"
},
"data": [
{
"keyValue": "1055317737314205696",
"id": 1055317737314205700,
"operate": "ADD",
"status": "SUCCESS",
"needRepush": false,
"extKeyMap": {
"outkey": "xxxxxxx001"
}
}
]
}
修改于 2025-01-09 05:47:48