POST api/StoreUpper/taking

Request Information

URI Parameters

None.

Body Parameters

md_store_upper_taking_create
NameDescriptionTypeAdditional information
remark

string

None.

op_id

integer

Required

molds

Collection of md_store_upper_taking_create_mold

None.

Request Formats

application/json, text/json

Sample:
{
  "remark": "sample string 1",
  "op_id": 2,
  "molds": [
    {
      "mold_id": 1,
      "models": [
        {
          "model": "sample string 1",
          "type": "sample string 2",
          "orders": [
            1,
            2
          ],
          "colors": [
            {
              "bom_id": 1,
              "model_color": "sample string 2",
              "sizes": [
                {
                  "size": 1,
                  "total_amount": 2,
                  "amount": 3,
                  "taken_amount": 4
                },
                {
                  "size": 1,
                  "total_amount": 2,
                  "amount": 3,
                  "taken_amount": 4
                }
              ]
            },
            {
              "bom_id": 1,
              "model_color": "sample string 2",
              "sizes": [
                {
                  "size": 1,
                  "total_amount": 2,
                  "amount": 3,
                  "taken_amount": 4
                },
                {
                  "size": 1,
                  "total_amount": 2,
                  "amount": 3,
                  "taken_amount": 4
                }
              ]
            }
          ]
        },
        {
          "model": "sample string 1",
          "type": "sample string 2",
          "orders": [
            1,
            2
          ],
          "colors": [
            {
              "bom_id": 1,
              "model_color": "sample string 2",
              "sizes": [
                {
                  "size": 1,
                  "total_amount": 2,
                  "amount": 3,
                  "taken_amount": 4
                },
                {
                  "size": 1,
                  "total_amount": 2,
                  "amount": 3,
                  "taken_amount": 4
                }
              ]
            },
            {
              "bom_id": 1,
              "model_color": "sample string 2",
              "sizes": [
                {
                  "size": 1,
                  "total_amount": 2,
                  "amount": 3,
                  "taken_amount": 4
                },
                {
                  "size": 1,
                  "total_amount": 2,
                  "amount": 3,
                  "taken_amount": 4
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "mold_id": 1,
      "models": [
        {
          "model": "sample string 1",
          "type": "sample string 2",
          "orders": [
            1,
            2
          ],
          "colors": [
            {
              "bom_id": 1,
              "model_color": "sample string 2",
              "sizes": [
                {
                  "size": 1,
                  "total_amount": 2,
                  "amount": 3,
                  "taken_amount": 4
                },
                {
                  "size": 1,
                  "total_amount": 2,
                  "amount": 3,
                  "taken_amount": 4
                }
              ]
            },
            {
              "bom_id": 1,
              "model_color": "sample string 2",
              "sizes": [
                {
                  "size": 1,
                  "total_amount": 2,
                  "amount": 3,
                  "taken_amount": 4
                },
                {
                  "size": 1,
                  "total_amount": 2,
                  "amount": 3,
                  "taken_amount": 4
                }
              ]
            }
          ]
        },
        {
          "model": "sample string 1",
          "type": "sample string 2",
          "orders": [
            1,
            2
          ],
          "colors": [
            {
              "bom_id": 1,
              "model_color": "sample string 2",
              "sizes": [
                {
                  "size": 1,
                  "total_amount": 2,
                  "amount": 3,
                  "taken_amount": 4
                },
                {
                  "size": 1,
                  "total_amount": 2,
                  "amount": 3,
                  "taken_amount": 4
                }
              ]
            },
            {
              "bom_id": 1,
              "model_color": "sample string 2",
              "sizes": [
                {
                  "size": 1,
                  "total_amount": 2,
                  "amount": 3,
                  "taken_amount": 4
                },
                {
                  "size": 1,
                  "total_amount": 2,
                  "amount": 3,
                  "taken_amount": 4
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}

application/xml, text/xml

Sample:
<md_store_upper_taking_create xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MRP.Domain.Models.ProductionLine.StoreUpper">
  <molds>
    <md_store_upper_taking_create_mold>
      <models>
        <md_store_upper_taking_create_model>
          <colors>
            <md_store_upper_taking_create_colors>
              <bom_id>1</bom_id>
              <model_color>sample string 2</model_color>
              <sizes>
                <md_store_upper_taking_create_size>
                  <amount>3</amount>
                  <size>1</size>
                  <taken_amount>4</taken_amount>
                  <total_amount>2</total_amount>
                </md_store_upper_taking_create_size>
                <md_store_upper_taking_create_size>
                  <amount>3</amount>
                  <size>1</size>
                  <taken_amount>4</taken_amount>
                  <total_amount>2</total_amount>
                </md_store_upper_taking_create_size>
              </sizes>
            </md_store_upper_taking_create_colors>
            <md_store_upper_taking_create_colors>
              <bom_id>1</bom_id>
              <model_color>sample string 2</model_color>
              <sizes>
                <md_store_upper_taking_create_size>
                  <amount>3</amount>
                  <size>1</size>
                  <taken_amount>4</taken_amount>
                  <total_amount>2</total_amount>
                </md_store_upper_taking_create_size>
                <md_store_upper_taking_create_size>
                  <amount>3</amount>
                  <size>1</size>
                  <taken_amount>4</taken_amount>
                  <total_amount>2</total_amount>
                </md_store_upper_taking_create_size>
              </sizes>
            </md_store_upper_taking_create_colors>
          </colors>
          <model>sample string 1</model>
          <orders xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:int>1</d6p1:int>
            <d6p1:int>2</d6p1:int>
          </orders>
          <type>sample string 2</type>
        </md_store_upper_taking_create_model>
        <md_store_upper_taking_create_model>
          <colors>
            <md_store_upper_taking_create_colors>
              <bom_id>1</bom_id>
              <model_color>sample string 2</model_color>
              <sizes>
                <md_store_upper_taking_create_size>
                  <amount>3</amount>
                  <size>1</size>
                  <taken_amount>4</taken_amount>
                  <total_amount>2</total_amount>
                </md_store_upper_taking_create_size>
                <md_store_upper_taking_create_size>
                  <amount>3</amount>
                  <size>1</size>
                  <taken_amount>4</taken_amount>
                  <total_amount>2</total_amount>
                </md_store_upper_taking_create_size>
              </sizes>
            </md_store_upper_taking_create_colors>
            <md_store_upper_taking_create_colors>
              <bom_id>1</bom_id>
              <model_color>sample string 2</model_color>
              <sizes>
                <md_store_upper_taking_create_size>
                  <amount>3</amount>
                  <size>1</size>
                  <taken_amount>4</taken_amount>
                  <total_amount>2</total_amount>
                </md_store_upper_taking_create_size>
                <md_store_upper_taking_create_size>
                  <amount>3</amount>
                  <size>1</size>
                  <taken_amount>4</taken_amount>
                  <total_amount>2</total_amount>
                </md_store_upper_taking_create_size>
              </sizes>
            </md_store_upper_taking_create_colors>
          </colors>
          <model>sample string 1</model>
          <orders xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:int>1</d6p1:int>
            <d6p1:int>2</d6p1:int>
          </orders>
          <type>sample string 2</type>
        </md_store_upper_taking_create_model>
      </models>
      <mold_id>1</mold_id>
    </md_store_upper_taking_create_mold>
    <md_store_upper_taking_create_mold>
      <models>
        <md_store_upper_taking_create_model>
          <colors>
            <md_store_upper_taking_create_colors>
              <bom_id>1</bom_id>
              <model_color>sample string 2</model_color>
              <sizes>
                <md_store_upper_taking_create_size>
                  <amount>3</amount>
                  <size>1</size>
                  <taken_amount>4</taken_amount>
                  <total_amount>2</total_amount>
                </md_store_upper_taking_create_size>
                <md_store_upper_taking_create_size>
                  <amount>3</amount>
                  <size>1</size>
                  <taken_amount>4</taken_amount>
                  <total_amount>2</total_amount>
                </md_store_upper_taking_create_size>
              </sizes>
            </md_store_upper_taking_create_colors>
            <md_store_upper_taking_create_colors>
              <bom_id>1</bom_id>
              <model_color>sample string 2</model_color>
              <sizes>
                <md_store_upper_taking_create_size>
                  <amount>3</amount>
                  <size>1</size>
                  <taken_amount>4</taken_amount>
                  <total_amount>2</total_amount>
                </md_store_upper_taking_create_size>
                <md_store_upper_taking_create_size>
                  <amount>3</amount>
                  <size>1</size>
                  <taken_amount>4</taken_amount>
                  <total_amount>2</total_amount>
                </md_store_upper_taking_create_size>
              </sizes>
            </md_store_upper_taking_create_colors>
          </colors>
          <model>sample string 1</model>
          <orders xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:int>1</d6p1:int>
            <d6p1:int>2</d6p1:int>
          </orders>
          <type>sample string 2</type>
        </md_store_upper_taking_create_model>
        <md_store_upper_taking_create_model>
          <colors>
            <md_store_upper_taking_create_colors>
              <bom_id>1</bom_id>
              <model_color>sample string 2</model_color>
              <sizes>
                <md_store_upper_taking_create_size>
                  <amount>3</amount>
                  <size>1</size>
                  <taken_amount>4</taken_amount>
                  <total_amount>2</total_amount>
                </md_store_upper_taking_create_size>
                <md_store_upper_taking_create_size>
                  <amount>3</amount>
                  <size>1</size>
                  <taken_amount>4</taken_amount>
                  <total_amount>2</total_amount>
                </md_store_upper_taking_create_size>
              </sizes>
            </md_store_upper_taking_create_colors>
            <md_store_upper_taking_create_colors>
              <bom_id>1</bom_id>
              <model_color>sample string 2</model_color>
              <sizes>
                <md_store_upper_taking_create_size>
                  <amount>3</amount>
                  <size>1</size>
                  <taken_amount>4</taken_amount>
                  <total_amount>2</total_amount>
                </md_store_upper_taking_create_size>
                <md_store_upper_taking_create_size>
                  <amount>3</amount>
                  <size>1</size>
                  <taken_amount>4</taken_amount>
                  <total_amount>2</total_amount>
                </md_store_upper_taking_create_size>
              </sizes>
            </md_store_upper_taking_create_colors>
          </colors>
          <model>sample string 1</model>
          <orders xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:int>1</d6p1:int>
            <d6p1:int>2</d6p1:int>
          </orders>
          <type>sample string 2</type>
        </md_store_upper_taking_create_model>
      </models>
      <mold_id>1</mold_id>
    </md_store_upper_taking_create_mold>
  </molds>
  <op_id>2</op_id>
  <remark>sample string 1</remark>
</md_store_upper_taking_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 'md_store_upper_taking_create'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.