Set the group of a lock

https://api.sciener.com/v3/lock/setGroup

The top administrator request this API to set the lock's group;

Common ekey user request this API to set the ekey's group;

1 Request example

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

2 Request parameters

NameTypeRequiredDescription
clientIdStringYclient_id from Create application
accessTokenStringYAccess token,refer to: Get access token
lockIdStringYLock ID, generated by Lock init
groupIdStringYGroup ID, from Get gruop list API, this parameter set 0 cancel grouping
dateLongYCurrent time (timestamp in millisecond)

3 Response and example

ParameterTypeDescription
errcodeIntError code
errmsgStringError message