POST api/masterdata/Product

Request Information

URI Parameters

None.

Body Parameters

MasterDataParameter
NameDescriptionTypeAdditional information
Timestamp

string

None.

ConcurTimeStamp

Collection of byte

None.

Request Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: Error getting value from 'ConcurTimeStamp' on 'FreshPackMultiProduce.WebApi.Models.MasterDataParameter'.

text/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: Error getting value from 'ConcurTimeStamp' on 'FreshPackMultiProduce.WebApi.Models.MasterDataParameter'.

application/xml, text/xml

Sample:
<MasterDataParameter xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FreshPackMultiProduce.WebApi.Models">
  <Timestamp>sample string 1</Timestamp>
</MasterDataParameter>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'MasterDataParameter'.

Response Information

Resource Description

Collection of Product
NameDescriptionTypeAdditional information
VarietyId

integer

None.

GradeId

integer

None.

HandlingUnitId

integer

None.

ProductSizeId

integer

None.

ProduceId

integer

None.

BrandId

integer

None.

PackTypeId

integer

None.

FruitLabelId

integer

None.

ProductGenerationId

integer

None.

ExternalProductCode

string

None.

ExternalProductBarCode

string

None.

Id

integer

None.

Code

string

None.

Description

string

None.

DeletedDate

date

None.

ConcurTimeStamp

Collection of byte

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "VarietyId": 1,
    "GradeId": 2,
    "HandlingUnitId": 3,
    "ProductSizeId": 4,
    "ProduceId": 5,
    "BrandId": 6,
    "PackTypeId": 7,
    "FruitLabelId": 8,
    "ProductGenerationId": 9,
    "ExternalProductCode": "sample string 10",
    "ExternalProductBarCode": "sample string 11",
    "Id": 12,
    "Code": "sample string 13",
    "Description": "sample string 14",
    "DeletedDate": "2025-12-06T14:07:55.921515+10:30",
    "ConcurTimeStamp": "QEA="
  },
  {
    "VarietyId": 1,
    "GradeId": 2,
    "HandlingUnitId": 3,
    "ProductSizeId": 4,
    "ProduceId": 5,
    "BrandId": 6,
    "PackTypeId": 7,
    "FruitLabelId": 8,
    "ProductGenerationId": 9,
    "ExternalProductCode": "sample string 10",
    "ExternalProductBarCode": "sample string 11",
    "Id": 12,
    "Code": "sample string 13",
    "Description": "sample string 14",
    "DeletedDate": "2025-12-06T14:07:55.921515+10:30",
    "ConcurTimeStamp": "QEA="
  }
]

application/xml, text/xml

Sample:
<ArrayOfProduct xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FreshPackMultiProduce.WebApi.Models.MasterDataModels">
  <Product>
    <_x003C_Code_x003E_k__BackingField>sample string 13</_x003C_Code_x003E_k__BackingField>
    <_x003C_ConcurTimeStamp_x003E_k__BackingField>QEA=</_x003C_ConcurTimeStamp_x003E_k__BackingField>
    <_x003C_DeletedDate_x003E_k__BackingField>2025-12-06T14:07:55.921515+10:30</_x003C_DeletedDate_x003E_k__BackingField>
    <_x003C_Description_x003E_k__BackingField>sample string 14</_x003C_Description_x003E_k__BackingField>
    <_x003C_Id_x003E_k__BackingField>12</_x003C_Id_x003E_k__BackingField>
    <BrandId>6</BrandId>
    <ExternalProductBarCode>sample string 11</ExternalProductBarCode>
    <ExternalProductCode>sample string 10</ExternalProductCode>
    <FruitLabelId>8</FruitLabelId>
    <GradeId>2</GradeId>
    <HandlingUnitId>3</HandlingUnitId>
    <PackTypeId>7</PackTypeId>
    <ProduceId>5</ProduceId>
    <ProductGenerationId>9</ProductGenerationId>
    <ProductSizeId>4</ProductSizeId>
    <VarietyId>1</VarietyId>
  </Product>
  <Product>
    <_x003C_Code_x003E_k__BackingField>sample string 13</_x003C_Code_x003E_k__BackingField>
    <_x003C_ConcurTimeStamp_x003E_k__BackingField>QEA=</_x003C_ConcurTimeStamp_x003E_k__BackingField>
    <_x003C_DeletedDate_x003E_k__BackingField>2025-12-06T14:07:55.921515+10:30</_x003C_DeletedDate_x003E_k__BackingField>
    <_x003C_Description_x003E_k__BackingField>sample string 14</_x003C_Description_x003E_k__BackingField>
    <_x003C_Id_x003E_k__BackingField>12</_x003C_Id_x003E_k__BackingField>
    <BrandId>6</BrandId>
    <ExternalProductBarCode>sample string 11</ExternalProductBarCode>
    <ExternalProductCode>sample string 10</ExternalProductCode>
    <FruitLabelId>8</FruitLabelId>
    <GradeId>2</GradeId>
    <HandlingUnitId>3</HandlingUnitId>
    <PackTypeId>7</PackTypeId>
    <ProduceId>5</ProduceId>
    <ProductGenerationId>9</ProductGenerationId>
    <ProductSizeId>4</ProductSizeId>
    <VarietyId>1</VarietyId>
  </Product>
</ArrayOfProduct>