注意:以下文档只适用于TOP接口,请谨慎使用!

文档中心 > API类目 > MOZI账号API

alibaba.mozi.fusion.update.employee.account (更新人员和账号属性)

更新人员和账号基本属性

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
employee_account UpdateTenantEmployeeAndAccountRequest 可选 入参
  • └ employee_name
  • String
  • 必须
  • 张三
  • 员工姓名
  • └ certificate_code
  • String
  • 可选
  • 430XXX
  • 证件号码
  • employee_base_properties
  • EmployeeBaseProperties
  • 可选
  • 员工基本属性
  • └ cell_phone_area_code
  • String
  • 可选
  • 86
  • 手机区号
  • └ nick_name
  • String
  • 可选
  • 张三
  • 昵称
  • └ avatar
  • String
  • 可选
  • http://xxx.jpg
  • 头像地址
  • └ email
  • String
  • 可选
  • allen@alibaba-inc.com
  • 邮箱
  • └ cell_phone
  • String
  • 可选
  • 150xxx
  • 机号码
  • └ employee_number
  • String
  • 可选
  • 1234
  • 工号
  • └ operator
  • String
  • 必须
  • allen
  • 操作人
  • └ request_meta_data
  • String
  • 可选
  • test
  • 请求附加消息
  • └ employee_code
  • String
  • 必须
  • 0001
  • 员工CODE
  • └ account_id
  • Number
  • 必须
  • 1234
  • 账号ID
  • └ tenant_id
  • Number
  • 必须
  • 123
  • 租户ID
  • └ certificate_type
  • String
  • 可选
  • 0
  • 证件类型

响应参数

名称 类型 示例值 描述
result UpdateTenantEmployeeAndAccountResult result 出参
  • └ data
  • String
  • data
  • 返回结果成功还是失败
  • └ success
  • Boolean
  • true
  • 调用是否成功
  • └ request_id
  • String
  • bf240f5d33704f71aa8c3692219dfb2a
  • 请求的UUID
  • └ response_message
  • String
  • OK
  • 返回状态描述
  • └ response_meta_data
  • String
  • xid
  • 返回附加信息
  • └ response_code
  • String
  • 0
  • 返回的状态码

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaMoziFusionUpdateEmployeeAccountRequest req = new AlibabaMoziFusionUpdateEmployeeAccountRequest();
AlibabaMoziFusionUpdateEmployeeAccountRequest.UpdateTenantEmployeeAndAccountRequest obj1 = new AlibabaMoziFusionUpdateEmployeeAccountRequest.UpdateTenantEmployeeAndAccountRequest();
obj1.setEmployeeName("张三");
obj1.setCertificateCode("430XXX");
AlibabaMoziFusionUpdateEmployeeAccountRequest.EmployeeBaseProperties obj2 = new AlibabaMoziFusionUpdateEmployeeAccountRequest.EmployeeBaseProperties();
obj2.setCellPhoneAreaCode("86");
obj2.setNickName("张三");
obj2.setAvatar("http://xxx.jpg");
obj2.setEmail("allen@alibaba-inc.com");
obj2.setCellPhone("150xxx");
obj2.setEmployeeNumber("1234");
obj1.setEmployeeBaseProperties(obj2);
obj1.setOperator("allen");
obj1.setRequestMetaData("test");
obj1.setEmployeeCode("0001");
obj1.setAccountId(1234L);
obj1.setTenantId(123L);
obj1.setCertificateType("0");
req.setEmployeeAccount(obj1);
AlibabaMoziFusionUpdateEmployeeAccountResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_mozi_fusion_update_employee_account_response>
    <result>
        <data>data</data>
        <success>true</success>
        <request_id>bf240f5d33704f71aa8c3692219dfb2a</request_id>
        <response_message>OK</response_message>
        <response_meta_data>xid</response_meta_data>
        <response_code>0</response_code>
    </result>
</alibaba_mozi_fusion_update_employee_account_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

返回
顶部