同步部门
正式环境
https://open.zuifuli.com
正式环境
https://open.zuifuli.com
POST
https://open.zuifuli.com
最后修改时间:2024-11-01 08:33:21
在公司下创建部门或者在部门下创建子部门
serviceName | customer.department.sync |
---|---|
version | 2.0 |
请求****bizContent参数
参数名称 | 类型 | 必填 | 说明 |
---|---|---|---|
id | Long | 是 | 部门id(与code不能同时为空) |
code | String | 是 | 部门code,唯一码(与id不能同时为空) |
chargeCustId | Long | 否 | 部门负责人 |
chargeReferId | String | 否 | 部门负责人,chargeCustId对应的外部id(chargeCustId不存在以chargeReferId为准) |
name | String | 是 | 部门名称 |
orgCustId | Long | 是 | 组织custId |
departmentType | String | 是 | 类型: DEPARTMENT(部门) TEAM(小组) |
parentId | Long | 否 | 上级部门Id(根部门为-1 ) |
parentCode | String | 否 | 上级部门code(非跟部门时,parentCode与parentId不能同时为空) |
String | 否 | 部门邮箱 | |
status | String | 否 | 状态(默认正常):ACTIVED 正常 STOP 停止 |
响应****bizContent参数
参数名称 | 类型 | 说明 |
---|---|---|
id | Long | 部门 |
请求参数
Body 参数application/x-www-form-urlencoded
channelCode
string
必需
sign
string
必需
signType
string
必需
示例值:
MD5
timestamp
string
必需
bizContent
string
必需
示例值:
{"name":""}
version
string
版本号
示例值:
1.0
serviceName
string
服务名称