POST api/product/{id}/allergens

Save product allergen information

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

Product identifier

globally unique identifier

Required

Body Parameters

Product allergens to save

Collection of ProductAllergen
NameDescriptionTypeAdditional 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": "Qw1TpNwq0E68lVBMr7XoNA==",
    "pluGuid": "a4530d43-2adc-4ed0-bc95-504cafb5e834",
    "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>Qw1TpNwq0E68lVBMr7XoNA==</PLUG_UID>
    <PluGuid>a4530d43-2adc-4ed0-bc95-504cafb5e834</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>Qw1TpNwq0E68lVBMr7XoNA==</PLUG_UID>
    <PluGuid>a4530d43-2adc-4ed0-bc95-504cafb5e834</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.