修改员工的手机号,如果手机号已经在该租户下存在,则不允许修改
路径 | /user/account/employee/modifyphone |
版本号 | 1.0.0 |
协议 | HTTPS |
请求方法 | POST |
是否需要用户身份鉴权 | 否 |
超时时间 | 3000 |
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
companyId | String | 是 | 公司id | |
identityId | String | 是 | 统一身份id | |
phone | String | 是 | 修改后的手机号 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
code | Int |
响应码, 200: 成功 |
|
message | String |
错误消息 |
|
localizedMsg | String |
本地语言错误消息 |
|
data | Boolean |
是否成功 |
示例
请求示例
{
"id": "1509086454180",
"version": "1.0",
"request":{
"apiVer": "1.0.0"
},
"params":{
"companyId": "value0",
"identityId": "value1",
"phone": "value2"
}
}
正常返回示例
JSON
格式
{
"id": "8d1a665e-ce92-45bf-add8-99d2e81814f3",
"code": 200,
"message": null,
"localizedMsg": null,
"data": true
}
异常返回示例
JSON
格式
{
"id": "8d1a665e-ce92-45bf-add8-99d2e81814f3",
"code": 2478,
"message": "this phone has registered",
"localizedMsg": null,
"data": null
}
错误码
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
500 | 500 | Internal Error | Internal Error |
503 | 503 | Service Unavailable | Service Unavailable |
403 | 403 | Request Limited | Request Limited |
401 | 401 | Empty Signature | Empty Signature |
400 | 400 | Request Format Error | Request Format Error |
200 | 20003 | Find Backend Error | Find Backend Error |
200 | 20004 | Backend Service Error | Backend Service Error |
200 | 20055 | Backend Service Invalid | Request Format Error |
200 | 20056 | Hsf Invoke Timeout | Hsf Invoke Timeout |
200 | 401 | Request Authorized Error | Request Authorized Error |
200 | 403 | Request Forbidden | Request Forbidden |
200 | 500 | Server Error | Server Error |
200 | 460 | identityId is blank | 需要注销的账号不存在 |
200 | 500 | Bad Request | 调用网关失败 |
200 | 403 | request forbidden. | 请求被禁止 |
200 | 403 | request forbidden. | 请求被禁止 |
200 | 2407 | openId invalid | openId invalid |
200 | 403 | request forbidden. | 请求被禁止 |
200 | 403 | request forbidden. | 请求被禁止 |
200 | 2477 | import thirdaccount failed | 导入三方账号失败 |
200 | 460 | thirdAccountMetaList is blank | 三方账号列表为空 |
200 | 460 | identityId is blank | 需要注销的账号不存在 |
200 | 500 | Bad Request | 调用网关失败 |
200 | 403 | request forbidden. | 请求被禁止 |
200 | 460 | request parameter error. | 入参不正确 |
200 | 403 | request forbidden | 访问被禁止 |
200 | 460 | dingdingbind employee not exist | 请求参数错误 |
200 | 2442 | employee is not exist | 未找到绑定的员工信息 |
200 | 2486 | access refresh token expired | accessToken或者 refreshToken已经过期 |
200 | 460 | request parameter error. | 请求参数错误 |
200 | 401 | app key tenant id not match | app key tenant id not match |
200 | 2453 | app not exist | appkey对应的应用不存在 |
200 | 2486 | access refresh token expired | accessToken或者 refreshToken已经过期 |
200 | 460 | request parameter error. | 请求参数错误 |
200 | 401 | request auth error. | appKey与统一身份ID对应的租户不同 |
200 | 2453 | app not exist | appKey对应的应用不存在 |
200 | 2478 | this phone has registered | 修改后的手机号已经存在 |
200 | 2442 | employee is not exist | 统一身份id不存在 |
200 | 500 | Bad Request | api不存在 |
200 | 2405 | identity is not existed | 公司未初始化 |
200 | 2441 | employee is already existed | 该手机号对应的员工已经存在 |
200 | 4028 | login name not exist | 账号不存在 |
200 | 4004 | invalid mobile | 手机号格式不对 |
200 | 2478 | this phone has registered | 修改后的手机号已经存在 |
200 | 2442 | employee is not exist | 统一身份id不存在 |
在文档使用中是否遇到以下问题
更多建议
匿名提交