GET V1 ems/factors/conditions
Gets all condition factors in the EMS. Each Condition object returns a collection of Units available for it.
Request Information
Example Request
To get all conditions in the EMS, make the following API call: GET /ems/factors/conditions
Response Information
HTTP Status Codes
| Status Code | Meaning |
|---|---|
| 200 (OK) | The request has completed successfully. The Conditions will be contained in the response body (see below). |
Response Detail
An empty Units collection for a Condition means there are no units defined for it.
Response Body Formats
application/json, text/json
Sample:
[
{
"ID": 12345,
"Name": "Condition 1",
"Units": [
{
"ID": 101,
"Name": "Unit 1"
},
{
"ID": 102,
"Name": "Unit 2"
}
]
},
{
"ID": 67890,
"Name": "Condition 2",
"Units": []
}
]
application/xml, text/xml
Sample:
<ArrayOfCondition xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Unilever.Urdps.Hts.EmsApi.EntityRepresentations.EMS.V1">
<Condition>
<ID>12345</ID>
<Name>Condition 1</Name>
<Units>
<Unit>
<ID>101</ID>
<Name>Unit 1</Name>
</Unit>
<Unit>
<ID>102</ID>
<Name>Unit 2</Name>
</Unit>
</Units>
</Condition>
<Condition>
<ID>67890</ID>
<Name>Condition 2</Name>
<Units />
</Condition>
</ArrayOfCondition>