Assign Profile

Assigns a profile to the fixture. The fixture will operate with the new behavior.   


POST https://{em_ip_address_or_hostname}/ems/api/org/fixture/v1/op/assignProfile/{fixture_id}/{group_id}


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”.

Sample Code

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.


HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: application/json
Content-Length: 7582
Date: Sat, 21 Jul 2015 17:06:51 GMT
  "status": "0"
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request


Article is closed for comments.