Employee Identity (EIAM)
Change Password via Email Interface
Interface
After successful login, users can call this interface with an email verification code and a new password to change their password.
# Request Description
Request URL https://{your_domain}/api/v2/sdk/pwd/change-by-email
Request Method POST
Content-Type application/json
# Request Header Parameters
| Parameter Name | Chinese Name | Required | Type | Example |
|---|---|---|---|---|
| X-operating-sys-version | Calling Party OS Version | Yes | String | windows10.1.1 |
| X-device-fingerprint | Calling Party Device Fingerprint | Yes | String | 156aysdna213sc50 |
| X-device-ip | Calling Party IP | No | String | 192.168.1.2 |
| X-agent | User-Agent Information | Yes | String | Mozilla/5.0 (iPhone; CPU iPhone OS 13_3 like Mac OS X) AppleWebKit/605.1.15(KHTML, like Gecko) Mobile/15E148/HuaWei-AnyOffice/2.6.1802.0010/com.huawei.cloudlink.workplace |
| X-L | For Internationalization Language Setting | No | String | zh |
| X-client-id | Application Authorization ID | Yes | String | nTo1eRIub60vPb54WeE6aojPwYwImtl4 |
| Authorization | The ID token returned by the user login interface. Format is Bearer {id_token} | Yes | String | Bearer eyJraWQiOiI1ZWZhN2ZmZDA2Z... |
# Request Body Example
{
"verify_code": "123456",
"password": "P@sdsdfsdfds"
}
1
2
3
4
2
3
4
# Request Parameters
| Parameter Name | Chinese Name | Required | Type | Description |
|---|---|---|---|---|
| verify_code | Email Verification Code | Yes | String | The received verification code To obtain the verification code, please refer to the Send Email Verification Code API type = CHANGE_PWD_EMS |
| password | Password | Yes | String | The new password to set |
# Response Example
Success Example:
HTTP/1.1 200 OK
Content-Type: application/json
Error Example:
HTTP/1.1 400 Bad Request
{
"error_code": "SDK.SMS.1006",
"error_msg": "The email verification code is incorrect"
}
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
# Response Parameters
None
