批量设置父部门¶
功能说明¶
批量设置父部门
接口地址¶
- 测试环境: https://openapi.guanaitong.tech/department/batchSetParent
- 生产环境: https://openapi.guanaitong.com/department/batchSetParent
HTTP请求方式¶
- Method: POST
- Content-Type: application/json
参数说明¶
-
公有参数
发送请求是必须传入公共参数,详见公共参数
-
Query私有参数
| 参数名称 | 是否必须 | 参数类型 | 长度限制 | 描述 |
|---|---|---|---|---|
| enterprise_code | 否 | string | [1,20] | 企业编号(集团必填,企业无需填写) |
-
Body私有参数
批量设置父部门的信息是放在一个数组里面,部门的信息如下:
| 参数名称 | 是否必须 | 参数类型 | 长度限制 | 描述 |
|---|---|---|---|---|
| dept_code | 是 | string | [1,50] | 部门编码 |
| parent_code | 是 | string | [1,50] | 父部门编码 |
请求示例¶
POST /department/batchSetParent?access_token=f08112a6b8e07b7c2b90d1c98d09de26&
sign=11e5f7b38da5f20f82b03b2cb395ef532778872a×tamp=1505906312 HTTP/1.1
Host: openapi.guanaitong.tech
Content-Type: application/json
Cache-Control: no-cache
[{"dept_code":"技术部","parent_code":"研发部"}]
返回参数说明¶
| 参数名称 | 描述 |
|---|---|
| code | 返回码。详见错误返回码。 |
| msg | 如果错误,返回错误信息。 |
| data | 如果没有错误,返回批次号可以根据批次号,查看同步进度 |