Open Platform
Skip to content

Change the period of a palm vein ​

https://cnapi.ttlock.com/v3/palmVein/changePeriod

1 Request method and example ​

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

json
curl --location -g --request POST 'https://cnapi.ttlock.com/v3/palmVein/changePeriod'\
--data-urlencode 'clientId=4773aa036f7f49c68d876bb4be85c80c' \
--data-urlencode 'accessToken=dfd5489d0cee31f0bdfaf59d0d42d71f' \
--data-urlencode 'id=66252' \
--data-urlencode 'startDate=1755134678245' \
--data-urlencode 'endDate=1855134678245' \
--data-urlencode 'type=1' \
--data-urlencode 'date=1755134678245'

2 Request parameters ​

NameTypeRequiredDescription
clientIdStringYclient_id from Create application
accessTokenStringYAccess token,refer to: Get access token
idIntYid of a palm vein
startDateLongYThe time when it becomes valid (timestamp in millisecond)
endDateLongYThe time when it is expired (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.
typeIntNMethod: 1-APP, 2-remote synchronous delivery, 4-WiFi wake-up asynchronous delivery; if not transmitted, the default APP is deleted
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
errcodeInterror code
errmsgStringerror message
descriptionStringerror message in Chinese
javascript
{
    "errcode": 0,
    "errmsg": "none error message or means yes",
    "description": "表示成功或是"    
}
CopyRight © 2012-2026 TTLock.All Rights Reserved