Add remote

https://api.sciener.com/v3/remote/add

Request this API after successfully adding a remote to the lock via APP SDK, this API just upload the remote's info to the cloud server to facilitate follow-up management.

You can add multiple remotes to a lock.

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
lockIdIntYLock ID, generated by Lock init
numberStringYRemote serial number
nameStringNName
macStringYMac
startDateLongYThe time when it becomes valid (timestamp in millisecond)
endDateLongYThe time when it becomes valid (timestamp in millisecond)
typeIntNType: 1-normal, 4-recurring
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.
electricQuantityIntYBattery
firmwareInfoJSONObjectYFireware info
dateLongYCurrent time (timestamp in millisecond)

3 Response and example

ParameterTypeDescription
remoteIdIntRemote ID