Skip to content

Add Device to Room

API Address:/v2/family/enduserapi/addDeviceInFamilyRoom

Request Method:POST

Request Data Type:application/json

Response Data Type:*/*

API Description:Add device to room

Request Example:

javascript
[
  {
    "dk": "",
    "newFrid": "",
    "oldFrid": "",
    "pk": ""
  }
]

Request Parameters:

Parameter NameDescriptionRequest TypeRequiredData TypeSchema
paramparambodytruearrayAdd device to room
  dkDevice Keytruestring
  newFridNew room ID where the device will be moved totruestring
  oldFridPrevious room ID where the device was located, if moving from the frequently used device list in a home, this parameter can be emptyfalsestring
  pkProduct Keytruestring

Response Status:

Status CodeDescriptionSchema
200Successfully deleted roomReturn registration code response«AddDeviceInRoomVO»
5637Please enter room ID
5663Source room cannot be the same as target room

Response Parameters:

Parameter NameDescriptionTypeSchema
codeResponse codeinteger(int32)integer(int32)
dataResponse dataAddDeviceInRoomVOAddDeviceInRoomVO
  failureListFailure listarrayobject
  successListSuccess listarrayobject
extMsgExtended messagestring
msgResponse messagestring

Response Example:

javascript
{
	"code": 0,
	"data": {
		"failureList": [],
		"successList": []
	},
	"extMsg": "",
	"msg": ""
}