批量设置父部门
https://openapi.guanaitong.tech/department/batchSetParent
POST
Content-Type: application/json
(1)公共参数
发送请求是必须传入公共参数,详见公共参数
(2)私有参数
| 参数名称 | 是否必须 | 参数类型 | 长度限制 | 描述 |
| dept_code | 是 | string | [1,50] | 部门编码 |
| parent_code | 是 | string | [1,20] | 父部门编码 |
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":"爱情部1","parent_code":"爱情部"}]
| 参数名称 | 描述 |
| code | 返回码。详见错误返回码。 |
| msg | 如果错误,返回错误信息。 |
| data | 如果没有错误,返回部门编号 |
{
"code": 0,
"data": "USERDOOR_BATCH_SET_PM_5a1ab36bc6b0e99f8726e99461db0429",
"msg": "OK"
}
{
"code": 1000210001,
"msg": "timestamp check failed!",
"data": null
}