https://api.sciener.com/v3/palmVein/add
POST, ContentType:application/x-www-form-urlencoded
xxxxxxxxxx101curl --location -g --request POST 'https://api.sciener.com/v3/palmVein/add'\2--data-urlencode 'clientId=4773aa036f7f49c68d876bb4be85c80c' \3--data-urlencode 'accessToken=dfd5489d0cee31f0bdfaf59d0d42d71f' \4--data-urlencode 'lockId=3466252' \5--data-urlencode 'name=16' \6--data-urlencode 'number=50432139657219' \7--data-urlencode 'startDate=1755134678245' \8--data-urlencode 'endDate=1855134678245' \9--data-urlencode 'type=1' \10--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 |
| lockId | Int | Y | the id of a lock |
| name | String | N | name of this palm vein |
| number | String | Y | number |
| startDate | Long | Y | The time when it becomes valid (timestamp in millisecond) |
| endDate | Long | Y | The time when it is expired (timestamp in millisecond) |
| type | Int | N | 1、Normal、4-Recurring,type = 1 by default. |
| 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. |
| date | Long | Y | Current time (timestamp in millisecond) |
cyclicConfig:
| Parameter | Type | Description |
|---|---|---|
| startTime | Int | The time when it becomes valid, in minute, for example 480 for 8:00 |
| endTime | Int | The time when it becomes validit is expired, in minute, for example 1080 for 18:00 |
| weekDay | Int | Week day:1-7, 1-Monday, 2-Tuesday...7-Sunday |
| Parameter | Type | Description |
|---|---|---|
| id | Int | The ID of a palm vein |
xxxxxxxxxx31{2 "id": 66325,3}