PUT api/Packaging/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

PackagingModels
NameDescriptionTypeAdditional information
PA_Id

integer

None.

PA_P_Id_FK

integer

Required

PA_Packsize_Code

string

Required

Max length: 30

PA_Barcode

string

Max length: 30

PA_Size

string

Required

PA_PackUOM

string

Required

Max length: 30

PA_PackType

string

Max length: 30

PA_ImagePrimary

string

Max length: 500

PA_ImageSecondary1

string

Max length: 500

PA_ImageSecondary2

string

Max length: 500

PA_ImageSecondary3

string

Max length: 500

PA_ImageSecondary4

string

Max length: 500

PA_OpenStock

decimal number

Required

PA_PackingDescription

string

Required

Max length: 100

PA_CasePack

integer

None.

PA_CMOQ

decimal number

None.

PA_SMOQ

decimal number

None.

PA_Product_Life

integer

Required

PA_Manufacturer_MMOQ

integer

Required

PA_Convertion_Factor

decimal number

Required

PA_MMOQ_UOM

string

Required

PA_UserId_FK

integer

None.

PA_TS

date

None.

PA_Inactive

character

None.

PA_TS_LastEdited

date

None.

PA_TS_Edited_Uid_FK

integer

None.

P_Id

integer

None.

PartnerCode

string

None.

P_Partner_Name

string

None.

MA_Name

string

None.

ProductId

integer

None.

ProductName

string

None.

P_ProductCode

string

None.

Request Formats

application/json, text/json

Sample:
{
  "PA_Id": 1,
  "PA_P_Id_FK": 2,
  "PA_Packsize_Code": "sample string 3",
  "PA_Barcode": "sample string 4",
  "PA_Size": "sample string 5",
  "PA_PackUOM": "sample string 6",
  "PA_PackType": "sample string 7",
  "PA_ImagePrimary": "sample string 8",
  "PA_ImageSecondary1": "sample string 9",
  "PA_ImageSecondary2": "sample string 10",
  "PA_ImageSecondary3": "sample string 11",
  "PA_ImageSecondary4": "sample string 12",
  "PA_OpenStock": 13.0,
  "PA_PackingDescription": "sample string 14",
  "PA_CasePack": 15,
  "PA_CMOQ": 16.0,
  "PA_SMOQ": 17.0,
  "PA_Product_Life": 18,
  "PA_Manufacturer_MMOQ": 1,
  "PA_Convertion_Factor": 1.0,
  "PA_MMOQ_UOM": "sample string 19",
  "PA_UserId_FK": 20,
  "PA_TS": "2019-07-17T06:15:27.7593266+05:30",
  "PA_Inactive": "A",
  "PA_TS_LastEdited": "2019-07-17T06:15:27.7593266+05:30",
  "PA_TS_Edited_Uid_FK": 24,
  "P_Id": 25,
  "PartnerCode": "sample string 26",
  "P_Partner_Name": "sample string 27",
  "MA_Name": "sample string 28",
  "ProductId": 29,
  "ProductName": "sample string 30",
  "P_ProductCode": "sample string 31"
}

application/xml, text/xml

Sample:
<PackagingModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/eDairyWebAPI.Models">
  <MA_Name>sample string 28</MA_Name>
  <PA_Barcode>sample string 4</PA_Barcode>
  <PA_CMOQ>16</PA_CMOQ>
  <PA_CasePack>15</PA_CasePack>
  <PA_Convertion_Factor>1</PA_Convertion_Factor>
  <PA_Id>1</PA_Id>
  <PA_ImagePrimary>sample string 8</PA_ImagePrimary>
  <PA_ImageSecondary1>sample string 9</PA_ImageSecondary1>
  <PA_ImageSecondary2>sample string 10</PA_ImageSecondary2>
  <PA_ImageSecondary3>sample string 11</PA_ImageSecondary3>
  <PA_ImageSecondary4>sample string 12</PA_ImageSecondary4>
  <PA_Inactive>65</PA_Inactive>
  <PA_MMOQ_UOM>sample string 19</PA_MMOQ_UOM>
  <PA_Manufacturer_MMOQ>1</PA_Manufacturer_MMOQ>
  <PA_OpenStock>13</PA_OpenStock>
  <PA_P_Id_FK>2</PA_P_Id_FK>
  <PA_PackType>sample string 7</PA_PackType>
  <PA_PackUOM>sample string 6</PA_PackUOM>
  <PA_PackingDescription>sample string 14</PA_PackingDescription>
  <PA_Packsize_Code>sample string 3</PA_Packsize_Code>
  <PA_Product_Life>18</PA_Product_Life>
  <PA_SMOQ>17</PA_SMOQ>
  <PA_Size>sample string 5</PA_Size>
  <PA_TS>2019-07-17T06:15:27.7593266+05:30</PA_TS>
  <PA_TS_Edited_Uid_FK>24</PA_TS_Edited_Uid_FK>
  <PA_TS_LastEdited>2019-07-17T06:15:27.7593266+05:30</PA_TS_LastEdited>
  <PA_UserId_FK>20</PA_UserId_FK>
  <P_Id>25</P_Id>
  <P_Partner_Name>sample string 27</P_Partner_Name>
  <P_ProductCode>sample string 31</P_ProductCode>
  <PartnerCode>sample string 26</PartnerCode>
  <ProductId>29</ProductId>
  <ProductName>sample string 30</ProductName>
</PackagingModels>

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 'PackagingModels'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.