Open Platform
Skip to content

Add Group ​

https://cnapi.sciener.com/v3/group/add

Add a group, a group belongs to a user, you can add locks and ekeys to a group and query locks and ekeys by group. You can request Init lock API with parameter groupId to add the lock into a group, or you can set the group of a lock at any time. Then you can query your locks and ekeys by group.

1 Request example ​

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

javascript
curl --location -g --request POST 'https://cnapi.sciener.com/v3/group/add' \
--data-urlencode 'clientId=4773aa036f7f49c68d876bb4be85c80c' \
--data-urlencode 'accessToken=dfd5489d0cee31f0bdfaf59d0d42d71f' \
--data-urlencode 'name=The 4th floor' \
--data-urlencode 'date=1625025703000'

2 Request parameters ​

NameTypeRequiredDescription
clientIdStringYclient_id from Create application
accessTokenStringYAccess token,refer to: Get access token
nameStringYGroup name
dateLongYCurrent time (timestamp in millisecond)

3 Response and example ​

ParameterTypeDescription
groupIdIntGroup ID
{
    "groupId": 1342
}
CopyRight © 2012-2026 Sciener.All Rights Reserved