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 ProductAllergen| Name | Description | Type | Additional information |
|---|---|---|---|
| PrimaryKey | ProductAllergenKey |
None. |
|
| 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",
"primaryKey": {
"$id": "2",
"pluGuid": "d6b976fd-a83b-4b27-a503-ffe6b40044c9",
"contains": 2
},
"allergenID": 1,
"pluG_UID": "/Xa51juoJ0ulA//mtABEyQ==",
"pluGuid": "d6b976fd-a83b-4b27-a503-ffe6b40044c9",
"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>/Xa51juoJ0ulA//mtABEyQ==</PLUG_UID>
<PluGuid>d6b976fd-a83b-4b27-a503-ffe6b40044c9</PluGuid>
<PrimaryKey xmlns:d3p1="http://schemas.datacontract.org/2004/07/EziManager.Models.EMC.Products">
<d3p1:Contains>2</d3p1:Contains>
<d3p1:PluGuid>d6b976fd-a83b-4b27-a503-ffe6b40044c9</d3p1:PluGuid>
</PrimaryKey>
<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>/Xa51juoJ0ulA//mtABEyQ==</PLUG_UID>
<PluGuid>d6b976fd-a83b-4b27-a503-ffe6b40044c9</PluGuid>
<PrimaryKey xmlns:d3p1="http://schemas.datacontract.org/2004/07/EziManager.Models.EMC.Products">
<d3p1:Contains>2</d3p1:Contains>
<d3p1:PluGuid>d6b976fd-a83b-4b27-a503-ffe6b40044c9</d3p1:PluGuid>
</PrimaryKey>
<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.