Create an object


An object will be created while assigning a logical device to a room.

Note- There are four types of logical device. light, switch, doorSensor, motionSensor. Each type has some common property in the request body. And other properties are different from each other. So, the request body will have different properties based on the value selected for the property type. There are four different request body schema available in the api example.