Set a Group of a Device

https://api.sciener.com/v3/group/setDeviceGroup

For locks, the lock administrator calls this interface to set the lock's group, and ordinary ekey users call this interface to set the key's group.

For water and electricity meters, only the water and electricity meter administrator calls this interface to set the meter'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
deviceTypeStringYEquipment type 0: Lock. 1: Electricity meter. 2: Water meter.
deviceIdStringYDevice ID
groupIdStringYGroup ID, returned by the "Get Group List" interface; passing 0 cancels the group.
dateLongYCurrent time (timestamp in millisecond)

3 Response and example

ParameterTypeDescription
errcodeIntError code
errmsgStringError message
descriptionStringError description