POST api/WMS/InsertAndUpdate/Item-location

Request Information

URI Parameters

None.

Body Parameters

m_InsertLocationAndBom
NameDescriptionTypeAdditional information
LocationId

integer

None.

models

Collection of m_InsertLocationAndBom_BomAndSize

None.

Request Formats

application/json, text/json

Sample:
{
  "LocationId": 1,
  "models": [
    {
      "model_no": "sample string 1",
      "model_color": "sample string 2",
      "size": 3,
      "max": 1,
      "min": 1
    },
    {
      "model_no": "sample string 1",
      "model_color": "sample string 2",
      "size": 3,
      "max": 1,
      "min": 1
    }
  ]
}

application/xml, text/xml

Sample:
<m_InsertLocationAndBom xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MRP.Domain.Models.WMS">
  <LocationId>1</LocationId>
  <models>
    <m_InsertLocationAndBom_BomAndSize>
      <max>1</max>
      <min>1</min>
      <model_color>sample string 2</model_color>
      <model_no>sample string 1</model_no>
      <size>3</size>
    </m_InsertLocationAndBom_BomAndSize>
    <m_InsertLocationAndBom_BomAndSize>
      <max>1</max>
      <min>1</min>
      <model_color>sample string 2</model_color>
      <model_no>sample string 1</model_no>
      <size>3</size>
    </m_InsertLocationAndBom_BomAndSize>
  </models>
</m_InsertLocationAndBom>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.