POST api/store/{storeID}/product/{id}/allergens
Save product allergen information
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
storeID |
store identifier |
integer |
Required |
id |
Product identifier |
globally unique identifier |
Required |
Body Parameters
Product allergens to save
Collection of ProductAllergenName | Description | Type | Additional information |
---|---|---|---|
AllergenID |
Allergen Identifier |
Allergens |
None. |
PLUG_UID | Collection of byte |
None. |
|
PluGuid |
Product GUID |
globally unique identifier |
None. |
Contains |
Allergen contains information |
AllergenContains |
None. |
AllergenName |
The Allergen Name |
string |
Relation. This field may not always be loaded or used for updates. |
StoreIDs | Collection of integer |
Relation. This field may not always be loaded or used for updates. |
Request Formats
application/json, text/json
Sample:
[ { "$id": "1", "allergenID": 1, "pluG_UID": "/EO+B84+6EycNT6Qxw+QGQ==", "pluGuid": "07be43fc-3ece-4ce8-9c35-3e90c70f9019", "contains": 2, "allergenName": "sample string 3", "storeIDs": [ 1, 2 ] }, { "$ref": "1" } ]
application/xml, text/xml
Sample:
<ArrayOfProductAllergen xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://gapsolutions.com.au/schema/ezimanager"> <ProductAllergen> <AllergenID>1</AllergenID> <AllergenName>sample string 3</AllergenName> <Contains>2</Contains> <PLUG_UID>/EO+B84+6EycNT6Qxw+QGQ==</PLUG_UID> <PluGuid>07be43fc-3ece-4ce8-9c35-3e90c70f9019</PluGuid> <StoreIDs xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d3p1:int>1</d3p1:int> <d3p1:int>2</d3p1:int> </StoreIDs> </ProductAllergen> <ProductAllergen> <AllergenID>1</AllergenID> <AllergenName>sample string 3</AllergenName> <Contains>2</Contains> <PLUG_UID>/EO+B84+6EycNT6Qxw+QGQ==</PLUG_UID> <PluGuid>07be43fc-3ece-4ce8-9c35-3e90c70f9019</PluGuid> <StoreIDs xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d3p1:int>1</d3p1:int> <d3p1:int>2</d3p1:int> </StoreIDs> </ProductAllergen> </ArrayOfProductAllergen>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
None.