文档中心 > API文档

2.14.2.22. 更新部门管理角色[主管,领导,管理员,公文收发员](Since:V6.0)

修改部门管理角色信息。

接口调用请求说明

http请求方式:PUT
 http://ip:port/seeyon/rest/orgDepartments/departmentmanagerinfo

修改部门角色信息参数:
 Map res = new HashMap();
 res.put("id", "3034473275669826764");//(部门ID)
 res.put("orgAccountId", "-4532703988283521957");//(单位ID)
 
 res.put("deptrole0", "Member|-3704582433472430042|部门主管(man)|-4532703988283521957|true");//部门主管-人员类型(member)/人员ID/人员名称/单位ID/true
 res.put("deptrole1", "Member|1063984842976872115|部门领导(man)|-4532703988283521957|true");//部门分管领导
 res.put("deptrole2", "Member|-2833598432627637498|李世民|-4532703988283521957|true");//部门管理员
 res.put("deptrole3", "");//如果不传则置空//"Member|-2833598432627637498|李世民|-4532703988283521957|true,Member|6715603953152377707|部门公文收发(man)|-4532703988283521957|true");//部门公文收发员
 //注意deptrole0 1 2 3 的顺序 不能改变,顺学对应的就是角色顺序
返回说明

正常情况下,会返回的是JSON兼职部门主管、分管领导、部门管理员、部门公文收发员人员信息,部门JSON数据包参考:Section 2.14.2.1.1, “部门对象示例”

参数说明请参考:Section 2.14.2.1.2, “部门对象属性说明”

如果录入错误或者为空时,返回JSON格式部门信息的为空.