组织人事
  1. 开放平台-组织人事接口
组织人事
  • 开放平台-组织人事接口
    • 开放平台认证步骤
    • 同步人员
      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
  1. 开放平台-组织人事接口

新增或修改群组

POST
/api/hrm/restful/saveChannel
当前还未上线

请求参数

Body 参数application/json
name
string 
必需
群组名称,新增时必填
isPrivate
integer 
必需
新增时必填,值固定为0
sortNum
integer 
新增时必填
可选
id
number 
必需
主键id,编辑时必填
示例
{"name":"新建编辑2","isPrivate":"0","sortNum":"9"}

示例代码

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/saveChannel' \
--header 'Content-Type: application/json' \
--data-raw '{"name":"新建编辑2","isPrivate":"0","sortNum":"9"}'

返回响应

🟢200成功
application/json
Body
object {0}
示例
{
    "code": 200,
    "msg": "接口返回成功",
    "status": true,
    "data": {
        "isChat": 0,
        "tenantKey": "tnk78sz5gt",
        "isPrivate": "0",
        "deleted": false,
        "userCount": 0,
        "createTime": "2024-04-15",
        "permanent": false,
        "name": "新建编辑2",
        "closed": 0,
        "sortNum": 9,
        "id": "987607148399845376"
    },
    "fail": false
}
修改于 2024-06-03 09:51:59
上一页
批量删除群组
下一页
批量封存/解封群组
Built with