部门启用或停用

接口说明: 启用或停用部门

请求方式: POST (HTTPS)
请求地址:https://api.xinrenxinshi.com/v5/department/updateStatus

请求Header:

key value
access_token 获取的access_token的实际值

Query参数:

key value
sign 签名值

Body参数:

参数 参数类型 必传(Y/N) 说明
departmentId String Y 部门ID
status Integer Y 状态 0:停用 1:启用
disableRemark String N 停用备注(启用可不传)
timestamp Long Y 请求时间戳(精确到毫秒)

部门更新注意事项:

  • 部门下有员工会停用失败

返回结果:

参数 类型 必传(Y/N) 说明
errcode Integer Y 0成功,其他失败
errmsg String Y 结果描述

请求示例(HTTPS):

https://api.xinrenxinshi.com/v5/department/updateStatus?sign=BqCoQtiHaDxnYhfeDi87%2BiR7CXc%3D

请求Body示例:

{
    "departmentId":"66cb5a71fbd24afb831b1ed14ed0a36b",
    "status": 0,
    "disableRemark":"部门停用",
    "timestamp":1625827438929
}

SDK请求示例(java):

DepartmentUpdateStatusRequest request = new DepartmentUpdateStatusRequest(access_token());
request.setDepartmentId("66cb5a71fbd24afb831b1ed14ed0a36b");
request.setStatus(0);
request.setDisableRemark("部门停用");
XrxsDepartmentService.updateDepartmentStatus(request);

响应示例:

{
  "errcode": 0,
  "errmsg": "成功",
  "data": null
}
2024 © 企家有道网络技术(北京)有限公司版权所有@京ICP备15035315号 all right reserved,powered by Gitbookupdate by: 2024-01-15 15:26:15

results matching ""

    No results matching ""