PUT api/allergen/{id}/ingredient/{ingredientID}

Update an allergen ingredient

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

Allergen identifier

integer

Required

ingredientID

Ingredient identifier

integer

Required

Body Parameters

Allergen ingredient to save

AllergenIngredient
NameDescriptionTypeAdditional 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,
  "allergenID": 2,
  "text": "sample string 3"
}

application/xml, text/xml

Sample:
<AllergenIngredient xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EziManager.Models.EMC.Allergens">
  <AllergenID>2</AllergenID>
  <ID>1</ID>
  <Text>sample string 3</Text>
</AllergenIngredient>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

None.