Reset password
https://euapi.ttlock.com/v3/user/resetPassword
Only password of users registered by cloud API: User register can be rested,you can't reset password of user accounts registered in TTLock APP。
1 Request example
POST, ContentType:application/x-www-form-urlencoded
javascript
x
curl --location -g --request POST 'https://euapi.ttlock.com/v3/user/resetPassword' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'clientId=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' \
--data-urlencode 'clientSecret=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' \
--data-urlencode 'username=abcd_c042f4db68f23406c6cecf84a7ebb0fe' \
--data-urlencode 'password=e10adc3949ba59abbe56e057f20f883e' \
--data-urlencode 'date=1625019027000'2 Request parameters
| Name | Type | Required | Description |
|---|---|---|---|
| clientId | String | Y | client_id from Create application |
| clientSecret | String | Y | client_secret from Create application |
| username | String | Y | The prefixed username return by cloud API: User register |
| password | String | Y | New password(32 chars, low case, md5 encrypted) |
| date | Long | Y | Current time (timestamp in millisecond) |
3 Response and example
| Parameter | Type | Description |
|---|---|---|
| errcode | Int | Error code |
| errmsg | String | Error message |
{
"errcode": 0,
"errmsg": "none error message"
}