POST api/PlanningDepartment/move-plan/key/{key}/model_no/{model_no}

Create Sale Order Plan

Request Information

URI Parameters

NameDescriptionTypeAdditional information
key

string

Required

model_no

string

Required

Body Parameters

m_MovePlan_Plan_Create
NameDescriptionTypeAdditional information
prd_lct_id

integer

Required

prd_line_id

integer

Required

remark

string

None.

model_colors

Collection of m_MovePlan_Plan_Colors_ModelSizes

None.

Request Formats

application/json, text/json

Sample:
{
  "prd_lct_id": 1,
  "prd_line_id": 2,
  "remark": "sample string 3",
  "model_colors": [
    {
      "model_color": "sample string 1",
      "sizes": [
        {
          "size": 1,
          "amount": 2,
          "spare": 3,
          "upper_store": 4,
          "shoe_store": 5
        },
        {
          "size": 1,
          "amount": 2,
          "spare": 3,
          "upper_store": 4,
          "shoe_store": 5
        }
      ]
    },
    {
      "model_color": "sample string 1",
      "sizes": [
        {
          "size": 1,
          "amount": 2,
          "spare": 3,
          "upper_store": 4,
          "shoe_store": 5
        },
        {
          "size": 1,
          "amount": 2,
          "spare": 3,
          "upper_store": 4,
          "shoe_store": 5
        }
      ]
    }
  ]
}

application/xml, text/xml

Sample:
<m_MovePlan_Plan_Create xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MRP.Domain.Models.ProductionLine.Planning_Department">
  <model_colors>
    <m_MovePlan_Plan_Colors_ModelSizes>
      <model_color>sample string 1</model_color>
      <sizes>
        <m_MovePlan_PlanSize_Create>
          <amount>2</amount>
          <shoe_store>5</shoe_store>
          <size>1</size>
          <spare>3</spare>
          <upper_store>4</upper_store>
        </m_MovePlan_PlanSize_Create>
        <m_MovePlan_PlanSize_Create>
          <amount>2</amount>
          <shoe_store>5</shoe_store>
          <size>1</size>
          <spare>3</spare>
          <upper_store>4</upper_store>
        </m_MovePlan_PlanSize_Create>
      </sizes>
    </m_MovePlan_Plan_Colors_ModelSizes>
    <m_MovePlan_Plan_Colors_ModelSizes>
      <model_color>sample string 1</model_color>
      <sizes>
        <m_MovePlan_PlanSize_Create>
          <amount>2</amount>
          <shoe_store>5</shoe_store>
          <size>1</size>
          <spare>3</spare>
          <upper_store>4</upper_store>
        </m_MovePlan_PlanSize_Create>
        <m_MovePlan_PlanSize_Create>
          <amount>2</amount>
          <shoe_store>5</shoe_store>
          <size>1</size>
          <spare>3</spare>
          <upper_store>4</upper_store>
        </m_MovePlan_PlanSize_Create>
      </sizes>
    </m_MovePlan_Plan_Colors_ModelSizes>
  </model_colors>
  <prd_lct_id>1</prd_lct_id>
  <prd_line_id>2</prd_line_id>
  <remark>sample string 3</remark>
</m_MovePlan_Plan_Create>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.