文档中心 部门接口 部门转移员工

部门转移员工

1.功能说明

转移部门员工到其他部门

2.接口调用说明

请求URL

https://openapi.guanaitong.tech/department/transferEmployee

HTTP请求方式

POST

输入参数说明

(1)公共参数

发送请求是必须传入公共参数,详见公共参数

(2)私有参数

参数名称 是否必须 参数类型 长度限制 描述
source_dept_code string [1,50] 原部门编码
target_dept_code string [1,50] 目标部门编码
enterprise_code string [1,20] 企业编码(集团同步,企业不填)
请求示例
POST /department/transferEmployee HTTP/1.1
Host: openapi.guanaitong.tech
Content-Type: application/x-www-form-urlencoded
Cache-Control: no-cache

access_token=6007bf4c6efeb798da35b843e4614cff&source_dept_code=S100&target_dept_code=S200&sign=5os0b643d101d8ae96e857ff4ca24de23bf4f27f&
timestamp=1495094685
                    
正确返回示例
{
    "code": 0,
    "data": true,
    "msg": "OK"
}
错误返回示例
{
    "code": 1000210001,
    "msg": "timestamp check failed!",
    "data": null
}