Update remote

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.

1 Request example

POST, ContentType:application/x-www-form-urlencoded

2 Request parameters

NameTypeRequiredDescription
clientIdStringYclient_id from Create application
accessTokenStringYAccess token,refer to: Get access token
remoteIdIntYremote ID,generated by Add remote
nameStringYNew remote name
startDateLongNThe time when it becomes valid (timestamp in millisecond)
endDateLongNThe time when it becomes valid (timestamp in millisecond)
cyclicConfigJsonArrayNRecurring 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.
changeTypeIntNMethod:
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.
dateLongYCurrent time (timestamp in millisecond)

3 Response and example

ParameterTypeDescription
errcodeIntError code
errmsgStringError message