临时密码修改
- 接口功能
修改已添加的智能锁临时密码
- 请求地址
https://open.ys7.com/api/component/saas/smartlock/tmppwd/update
- 请求方式
POST
- 参数列表
| 参数名 | 类型 | 描述 | 是否必填 |
|---|---|---|---|
| accessToken | String | 开放平台授权获取的访问令牌 | Y |
| deviceSerial | String | 智能锁序列号 | Y |
| tmpPwdIndex | String | 临时密码索引 | Y |
| tmpPwdEnable | String | 临时密码是否使能(0-不使能;1-使能) | N |
| userName | String | 用户名 | N |
| beginTime | String | 卡效期起始时间 | N |
| endTime | String | 卡效期结束时间 | N |
| tmpPwd | String | 临时密码(6位数字,使用时须先在锁上输入67#) | N |
| tmpPwdNum | String | 使用次数 | N |
- 请求报文
POST https://open.ys7.com/api/component/saas/smartlock/tmppwd/update HTTP/1.1
Host: open.ys7.com
content-type: application/x-www-form-urlencoded
accessToken=at.axk5tx9j6y2pkjnacqzz461x7qyy7oej-837w5x8x8a-1qwxmsq-goctoffs8&deviceSerial=C74528358&tmpPwdIndex=2
&tmpPwdEnable=1&beginTime=2018-11-25%2008%3A30%3A00&endTime=2020-11-25%2008%3A30%3A00&tmpPwd=234567&tmpPwdNum=10
- 返回数据
{
"code": "200",
"msg": "操作成功"
}
- 参数说明
| 参数名 | 类型 | 描述 | 是否必须 |
|---|---|---|---|
| code | int | 状态码-200,表示成功 | Y |
| msg | String | 具体错误描述信息 | Y |