Assigns a profile to the fixture. The fixture will operate with the new behavior.
|em_ip_address or hostname||The Enlighted Manage (EM) IP address or hostname|
|fixture_id||The fixture or sensor identifier. Use the Fixture ID returned in the Get Sensor Details by Floor API or in EM, select Facility > Floor in the left panel, Floor Plan tab, and double-click the fixture icon in the floor plan to obtain the Fixture ID.|
|group_id||Profile group identifier to which the fixture needs to be assigned (returned in Get Sensor Profiles API)|
|status||0 – Profile assigned successfully to the sensor
-1 – Profile not assigned to the sensor
|Msg||Error message description. For example, “either fixture or group does not exist. Please provide valid inputs”.|
The sample code shows how to assign a profile to a fixture. Use the Fixture ID returned by the Get Sensor Details by Floor and Group ID returned by the Get Sensor Profiles to assign a new profile to the fixture. For example, use the profile Open Office Max 70 with GroupId ‘27’ to assign it to the fixture with ID ‘28’. The response indicates that the profile has been assigned successfully to the fixture.