POST api/WMS/inventory/addModel

Request Information

URI Parameters

None.

Body Parameters

m_WMS_InventroyAdjustLocation
NameDescriptionTypeAdditional information
LocationId

integer

None.

Items

Collection of m_WMS_InventroyAdjustProduct

None.

Request Formats

application/json, text/json

Sample:
{
  "LocationId": 1,
  "Items": [
    {
      "ModelNo": "sample string 1",
      "Color": "sample string 2",
      "Size": 3,
      "Amount": 4
    },
    {
      "ModelNo": "sample string 1",
      "Color": "sample string 2",
      "Size": 3,
      "Amount": 4
    }
  ]
}

application/xml, text/xml

Sample:
<m_WMS_InventroyAdjustLocation xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MRP.Domain.Models.WMS">
  <Items>
    <m_WMS_InventroyAdjustProduct>
      <Amount>4</Amount>
      <Color>sample string 2</Color>
      <ModelNo>sample string 1</ModelNo>
      <Size>3</Size>
    </m_WMS_InventroyAdjustProduct>
    <m_WMS_InventroyAdjustProduct>
      <Amount>4</Amount>
      <Color>sample string 2</Color>
      <ModelNo>sample string 1</ModelNo>
      <Size>3</Size>
    </m_WMS_InventroyAdjustProduct>
  </Items>
  <LocationId>1</LocationId>
</m_WMS_InventroyAdjustLocation>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.