POST api/allergen/{id}/ingredients
Update the list of allergen ingredients
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
Allergen identifier |
integer |
Required |
Body Parameters
List of allergen ingredients
Collection of AllergenIngredient| Name | Description | Type | Additional information |
|---|---|---|---|
| ID |
Allergen identifier |
integer |
None. |
| AllergenID |
Allergen identifier |
integer |
None. |
| Text |
Alternate allergen description for declaration |
string |
None. |
Request Formats
application/json, text/json
Sample:
[
{
"$id": "1",
"id": 1,
"allergenID": 2,
"text": "sample string 3"
},
{
"$ref": "1"
}
]
application/xml, text/xml
Sample:
<ArrayOfAllergenIngredient xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EziManager.Models.EMC.Allergens">
<AllergenIngredient>
<AllergenID>2</AllergenID>
<ID>1</ID>
<Text>sample string 3</Text>
</AllergenIngredient>
<AllergenIngredient>
<AllergenID>2</AllergenID>
<ID>1</ID>
<Text>sample string 3</Text>
</AllergenIngredient>
</ArrayOfAllergenIngredient>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
None.