https://api.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.
POST, ContentType:application/x-www-form-urlencoded
xxxxxxxxxxcurl --location -g --request POST 'https://api.sciener.com/v3/group/add' \--data-urlencode 'clientId=4773aa036f7f49c68d876bb4be85c80c' \--data-urlencode 'accessToken=dfd5489d0cee31f0bdfaf59d0d42d71f' \--data-urlencode 'name=The 4th floor' \--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 |
| name | String | Y | Group name |
| date | Long | Y | Current time (timestamp in millisecond) |
| Parameter | Type | Description |
|---|---|---|
| groupId | Int | Group ID |
xxxxxxxxxx{"groupId": 1342}