POST api/ms/product/create
Create
Request Information
URI Parameters
None.
Body Parameters
m_product_create| Name | Description | Type | Additional information | 
|---|---|---|---|
| Code | string | String length: inclusive between 0 and 10 | |
| Name | string | Required String length: inclusive between 0 and 50 | |
| Detail | string | String length: inclusive between 0 and 4000 | |
| Price | decimal number | None. | |
| Quantity | integer | None. | |
| ProductImages | Collection of m_product_image | None. | |
| ProductCategoryMappings | Collection of m_ProductCategoryMapping | None. | 
Request Formats
application/json, text/json
            Sample:
        
{
  "Code": "sample string 1",
  "Name": "sample string 2",
  "Detail": "sample string 3",
  "Price": 4.0,
  "Quantity": 5,
  "ProductImages": [
    {
      "Name": "sample string 1"
    },
    {
      "Name": "sample string 1"
    }
  ],
  "ProductCategoryMappings": [
    {
      "CategoryId": 1
    },
    {
      "CategoryId": 1
    }
  ]
}
        application/xml, text/xml
            Sample:
        
<m_product_create xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/KFA.Modules.Models.Mainsystem">
  <Code>sample string 1</Code>
  <Detail>sample string 3</Detail>
  <Name>sample string 2</Name>
  <Price>4</Price>
  <ProductCategoryMappings>
    <m_ProductCategoryMapping>
      <CategoryId>1</CategoryId>
    </m_ProductCategoryMapping>
    <m_ProductCategoryMapping>
      <CategoryId>1</CategoryId>
    </m_ProductCategoryMapping>
  </ProductCategoryMappings>
  <ProductImages>
    <m_product_image>
      <Name>sample string 1</Name>
    </m_product_image>
    <m_product_image>
      <Name>sample string 1</Name>
    </m_product_image>
  </ProductImages>
  <Quantity>5</Quantity>
</m_product_create>
        application/x-www-form-urlencoded
            Sample:
    
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
            Sample:
                    
Sample not available.