Add A Palm Vein

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

1 Request method and example

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

2 Request parameters

NameTypeRequiredDescription
clientIdStringYclient_id from Create application
accessTokenStringYAccess token,refer to: Get access token
lockIdIntYthe id of a lock
nameStringNname of this palm vein
numberStringYnumber
startDateLongYThe time when it becomes valid (timestamp in millisecond)
endDateLongYThe time when it is expired (timestamp in millisecond)
typeIntN1、Normal、4-Recurring,type = 1 by default.
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.
dateLongYCurrent time (timestamp in millisecond)

cyclicConfig:

ParameterTypeDescription
startTimeIntThe time when it becomes valid, in minute, for example 480 for 8:00
endTimeIntThe time when it becomes validit is expired, in minute, for example 1080 for 18:00
weekDayIntWeek day:1-7, 1-Monday, 2-Tuesday...7-Sunday

3 Response and example

ParameterTypeDescription
idIntThe ID of a palm vein