https://api.sciener.com/v3/remote/update
Update the name or valid time period of a remote via APP SDK, then use this API upload to the cloud.
POST, ContentType:application/x-www-form-urlencoded
xxxxxxxxxxcurl --location -g --request POST 'https://api.sciener.com/v3/remote/update' \--data-urlencode 'clientId=4773aa036f7f49c68d876bb4be85c80c' \--data-urlencode 'accessToken=dfd5489d0cee31f0bdfaf59d0d42d71f' \--data-urlencode 'remoteId=4242' \--data-urlencode 'name=remote 2' \--data-urlencode 'date=1625025703000'| Name | Type | Required | Description |
|---|---|---|---|
| clientId | String | Y | client_id from Create application |
| accessToken | String | Y | Access token,refer to: Get access token |
| remoteId | Int | Y | remote ID,generated by Add remote |
| name | String | Y | New remote name |
| startDate | Long | N | The time when it becomes valid (timestamp in millisecond) |
| endDate | Long | N | The time when it becomes valid (timestamp in millisecond) |
| cyclicConfig | JsonArray | N | Recurring time period, the valid time period of each week day must be the same, for example: [{"weekDay":1, "startTime":480,"endTime":1080},{"weekDay":2, "startTime":480,"endTime":1080}] for valid from 8:00 to 18:00 in Monday and Tuesday. |
| changeType | Int | N | Method: 1-via phone bluetooth, you should call APP SDK method first 2- via gateway or WiFi lock, you can call this api directly if it's a WiFi lock or it's connected to gateway The default value is 1. |
| date | Long | Y | Current time (timestamp in millisecond) |
| Parameter | Type | Description |
|---|---|---|
| errcode | Int | Error code |
| errmsg | String | Error message |
xxxxxxxxxx{"errcode": 0,"errmsg": "none error message"}