# 接口说明

  • 最新接口
  • 绑定第三方部门ID,将客户系统部门与分贝通部门进行id绑定
请求方式 请求地址
POST /openapi/func/department/bind

请求参数

字段 名称 类型 必填 描述
timestamp 时间戳 long Y 13位时间戳
sign 签名 string Y argfewfsvre345eg
access_token token string Y 登录 token
employee_id 操作人id string Y 操作人id,需使用授权负责人id
employee_type 用户类型 string Y 类型,0为分贝用户,1为第三方用户
data 请求数据 jsonstring Y 请求数据
data.thirdOrgId 部门ID string Y 第三方部门ID,即绑定部门的三方id
data.operatorId 操作人ID string Y dje83jd9ee345678,同employee_id
data.type 绑定类型 integer Y 1:根据分贝部门id绑定 2:根据部门全名称绑定
data.orgId 分贝部门ID string N 根据分贝部门id绑定时必传
data.orgNameList 部门集合 string N 根据部门全名称绑定时必传,按照部门名称从当前部门到公司顺序
data.orgUnitCode 部门编码 string N 部门编码

请求示例:

根据分贝部门id绑定:

"access_token": "xxx.xxx.xxx",
"timestamp": 1596697247000,
"employee_id":"third_jianyuan",
"employee_type":"1",
"sign": "09676i3j7d994783ujd893",
"data":
 {
 	"thirdOrgId": "third_jianyuanceshi",
 	"type": 1,
 	"orgId": "5b2112752798634dccdb09e0",
 	"operatorId": "third_jianyuan",
 	"orgUnitCode": "68767"
 }

根据部门全名称绑定:

"access_token": "xxx.xxx.xxx",
"timestamp": 1596697247000,
"employee_id":"third_jianyuan",
"employee_type":1,
"sign": "09676i3j7d994783ujd893",
"data":
{
	"thirdOrgId": "third_jianyuanceshi",
	"type": 2,
	"orgNameList": ["技术发展司", "技术委员会", "研发部", "北京分贝金服科技有限公司"],
	"operatorId": "third_jianyuan",
	"orgUnitCode": "68767"
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31

返回结果

{
    "request_id": "MbbPPJyDqZEFoqljiuBJ",
    "code": 0,
    "type": 0,
    "msg": "success"
}


{
    "msg": "当前第三方部门ID已经存在",
    "code": 200002,
    "request_id": "wvyR8OZVzwbqylChPfFg"
}


{
    "msg": "部门信息参数不正确",
    "code": 200001,
    "request_id": "k6bF6U0BUM4ULZUaOgXx"
}

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
lastUpdate: 4/8/2022, 7:22:48 PM