POST api/Product
Request Information
URI Parameters
None.
Body Parameters
ProductModelsName | Description | Type | Additional information |
---|---|---|---|
P_Id | integer |
None. |
|
P_ProductCode | string |
Required Max length: 500 |
|
ManufacturerSpeedSearch | ManufacturerSpeedSearchModels |
Required |
|
P_Name | string |
Required Max length: 50 |
|
P_Image1 | string |
Required Max length: -1 |
|
P_Image2 | string |
Max length: -1 |
|
P_Image3 | string |
Max length: -1 |
|
P_Image4 | string |
Max length: -1 |
|
P_PC_Id_FK | integer |
None. |
|
P_PSC_Id_FK | integer |
None. |
|
ProductCategorySpeedSearch | ProductCategorySpeedSearchModels |
Required |
|
ProductSubCategorySpeedSearch | ProductSubCategorySpeedSearchModels |
Required |
|
P_UOM | string |
Required Max length: -1 |
|
P_NutritionalValue | string |
Max length: -1 |
|
P_ShortDescription | string |
Required Max length: 500 |
|
P_LongDescription | string |
None. |
|
P_PR1 | integer |
None. |
|
P_PR2 | integer |
None. |
|
P_PR3 | integer |
None. |
|
P_PR4 | integer |
None. |
|
P_PR5 | integer |
None. |
|
P_Packaging | string |
Required Max length: -1 |
|
P_PackSize | string |
Required Max length: -1 |
|
P_CasePack | string |
Required Max length: -1 |
|
P_ProductOrder | integer |
Required |
|
P_AlternateText | string |
Required |
|
P_UserId_FK | integer |
None. |
|
P_TS | date |
None. |
|
P_Inactive | character |
None. |
|
P_TS_LastEdited | date |
None. |
|
P_TS_Edited_Uid_FK | integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "P_Id": 1, "P_ProductCode": "sample string 2", "ManufacturerSpeedSearch": { "MA_Id": 1, "MA_Code": "sample string 2", "MA_Name": "sample string 3" }, "P_Name": "sample string 3", "P_Image1": "sample string 4", "P_Image2": "sample string 5", "P_Image3": "sample string 6", "P_Image4": "sample string 7", "P_PC_Id_FK": 8, "P_PSC_Id_FK": 9, "ProductCategorySpeedSearch": { "PC_Id": 1, "PC_Category": "sample string 2" }, "ProductSubCategorySpeedSearch": { "PSC_Id": 1, "ProductCategorySpeedSearch": { "PC_Id": 1, "PC_Category": "sample string 2" }, "PCS_SubCategory": "sample string 2" }, "P_UOM": "sample string 10", "P_NutritionalValue": "sample string 11", "P_ShortDescription": "sample string 12", "P_LongDescription": "sample string 13", "P_PR1": 14, "P_PR2": 15, "P_PR3": 16, "P_PR4": 17, "P_PR5": 18, "P_Packaging": "sample string 19", "P_PackSize": "sample string 20", "P_CasePack": "sample string 21", "P_ProductOrder": 22, "P_AlternateText": "sample string 23", "P_UserId_FK": 24, "P_TS": "2025-01-09T00:33:41.9081353+05:30", "P_Inactive": "A", "P_TS_LastEdited": "2025-01-09T00:33:41.9081353+05:30", "P_TS_Edited_Uid_FK": 28 }
application/xml, text/xml
Sample:
<ProductModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/eDairyWebAPI.Models"> <ManufacturerSpeedSearch xmlns:d2p1="http://schemas.datacontract.org/2004/07/eDairyWebAPI.Models.SpeedSearch"> <d2p1:MA_Code>sample string 2</d2p1:MA_Code> <d2p1:MA_Id>1</d2p1:MA_Id> <d2p1:MA_Name>sample string 3</d2p1:MA_Name> </ManufacturerSpeedSearch> <P_AlternateText>sample string 23</P_AlternateText> <P_CasePack>sample string 21</P_CasePack> <P_Id>1</P_Id> <P_Image1>sample string 4</P_Image1> <P_Image2>sample string 5</P_Image2> <P_Image3>sample string 6</P_Image3> <P_Image4>sample string 7</P_Image4> <P_Inactive>65</P_Inactive> <P_LongDescription>sample string 13</P_LongDescription> <P_Name>sample string 3</P_Name> <P_NutritionalValue>sample string 11</P_NutritionalValue> <P_PC_Id_FK>8</P_PC_Id_FK> <P_PR1>14</P_PR1> <P_PR2>15</P_PR2> <P_PR3>16</P_PR3> <P_PR4>17</P_PR4> <P_PR5>18</P_PR5> <P_PSC_Id_FK>9</P_PSC_Id_FK> <P_PackSize>sample string 20</P_PackSize> <P_Packaging>sample string 19</P_Packaging> <P_ProductCode>sample string 2</P_ProductCode> <P_ProductOrder>22</P_ProductOrder> <P_ShortDescription>sample string 12</P_ShortDescription> <P_TS>2025-01-09T00:33:41.9081353+05:30</P_TS> <P_TS_Edited_Uid_FK>28</P_TS_Edited_Uid_FK> <P_TS_LastEdited>2025-01-09T00:33:41.9081353+05:30</P_TS_LastEdited> <P_UOM>sample string 10</P_UOM> <P_UserId_FK>24</P_UserId_FK> <ProductCategorySpeedSearch xmlns:d2p1="http://schemas.datacontract.org/2004/07/eDairyWebAPI.Models.SpeedSearch"> <d2p1:PC_Category>sample string 2</d2p1:PC_Category> <d2p1:PC_Id>1</d2p1:PC_Id> </ProductCategorySpeedSearch> <ProductSubCategorySpeedSearch xmlns:d2p1="http://schemas.datacontract.org/2004/07/eDairyWebAPI.Models.SpeedSearch"> <d2p1:PCS_SubCategory>sample string 2</d2p1:PCS_SubCategory> <d2p1:PSC_Id>1</d2p1:PSC_Id> <d2p1:ProductCategorySpeedSearch> <d2p1:PC_Category>sample string 2</d2p1:PC_Category> <d2p1:PC_Id>1</d2p1:PC_Id> </d2p1:ProductCategorySpeedSearch> </ProductSubCategorySpeedSearch> </ProductModels>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.