文档中心 > API类目 > 神鲸应用API

alibaba.campus.core.department.modify (修改部门)

修改部门

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
department_ext_dto DepartmentVo 可选 部门信息
  • └ company_id
  • Number
  • 可选
  • 1
  • 公司ID
  • └ super_dept_id
  • Number
  • 可选
  • 1
  • 部门ID
  • └ dept_manager_id
  • String
  • 可选
  • 1
  • 部门经理
  • └ dept_name_path
  • String
  • 可选
  • 1
  • 部门名称路径
  • └ dept_manager_name
  • String
  • 可选
  • 1
  • 部门经理名称
  • └ name
  • String
  • 可选
  • 1
  • 部门名称
  • └ dept_id_path
  • String
  • 可选
  • 1
  • 部门路径
  • └ id
  • Number
  • 可选
  • 1
  • ID
  • └ short_name
  • String
  • 可选
  • 1
  • 部门简称
scene_d_t_o String 可选 1 基本信息

响应参数

名称 类型 示例值 描述
result Boolean true 是否修改成功

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaCampusCoreDepartmentModifyRequest req = new AlibabaCampusCoreDepartmentModifyRequest();
AlibabaCampusCoreDepartmentModifyRequest.DepartmentVo obj1 = new AlibabaCampusCoreDepartmentModifyRequest.DepartmentVo();
obj1.setCompanyId(1L);
obj1.setSuperDeptId(1L);
obj1.setDeptManagerId("1");
obj1.setDeptNamePath("1");
obj1.setDeptManagerName("1");
obj1.setName("1");
obj1.setDeptIdPath("1");
obj1.setId(1L);
obj1.setShortName("1");
req.setDepartmentExtDto(obj1);
req.setSceneDTO("1");
AlibabaCampusCoreDepartmentModifyResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_campus_core_department_modify_response>
    <result>true</result>
</alibaba_campus_core_department_modify_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部