PUT api/ms/product/update/{productId}

Update

Request Information

URI Parameters

NameDescriptionTypeAdditional information
productId

integer

Required

Body Parameters

m_product_update
NameDescriptionTypeAdditional information
Name

string

Required

String length: inclusive between 0 and 50

Detail

string

String length: inclusive between 0 and 4000

Price

decimal number

None.

ProductImages

Collection of m_product_image

None.

ProductCategoryMappings

Collection of m_ProductCategoryMapping

None.

Request Formats

application/json, text/json

Sample:
{
  "Name": "sample string 1",
  "Detail": "sample string 2",
  "Price": 3.0,
  "ProductImages": [
    {
      "Name": "sample string 1"
    },
    {
      "Name": "sample string 1"
    }
  ],
  "ProductCategoryMappings": [
    {
      "CategoryId": 1
    },
    {
      "CategoryId": 1
    }
  ]
}

application/xml, text/xml

Sample:
<m_product_update xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/KFA.Modules.Models.Mainsystem">
  <Detail>sample string 2</Detail>
  <Name>sample string 1</Name>
  <Price>3</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>
</m_product_update>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.