PUT api/cap/set/department/{year}/{month}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
year

integer

Required

month

integer

Required

Body Parameters

Collection of md_cap_set_department
NameDescriptionTypeAdditional information
department

string

None.

dpm_id

integer

None.

cap_type

string

None.

cap_type_name

string

None.

total_cap

integer

None.

locations

Collection of md_cap_set_location

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "department": "sample string 1",
    "dpm_id": 2,
    "cap_type": "sample string 3",
    "cap_type_name": "sample string 4",
    "total_cap": 5,
    "locations": [
      {
        "location": "sample string 1",
        "lc_id": 2,
        "cap": 3,
        "isEnable": true
      },
      {
        "location": "sample string 1",
        "lc_id": 2,
        "cap": 3,
        "isEnable": true
      }
    ]
  },
  {
    "department": "sample string 1",
    "dpm_id": 2,
    "cap_type": "sample string 3",
    "cap_type_name": "sample string 4",
    "total_cap": 5,
    "locations": [
      {
        "location": "sample string 1",
        "lc_id": 2,
        "cap": 3,
        "isEnable": true
      },
      {
        "location": "sample string 1",
        "lc_id": 2,
        "cap": 3,
        "isEnable": true
      }
    ]
  }
]

application/xml, text/xml

Sample:
<ArrayOfmd_cap_set_department xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MRP.Domain.Models.Cap">
  <md_cap_set_department>
    <cap_type>sample string 3</cap_type>
    <cap_type_name>sample string 4</cap_type_name>
    <department>sample string 1</department>
    <dpm_id>2</dpm_id>
    <locations>
      <md_cap_set_location>
        <cap>3</cap>
        <isEnable>true</isEnable>
        <lc_id>2</lc_id>
        <location>sample string 1</location>
      </md_cap_set_location>
      <md_cap_set_location>
        <cap>3</cap>
        <isEnable>true</isEnable>
        <lc_id>2</lc_id>
        <location>sample string 1</location>
      </md_cap_set_location>
    </locations>
    <total_cap>5</total_cap>
  </md_cap_set_department>
  <md_cap_set_department>
    <cap_type>sample string 3</cap_type>
    <cap_type_name>sample string 4</cap_type_name>
    <department>sample string 1</department>
    <dpm_id>2</dpm_id>
    <locations>
      <md_cap_set_location>
        <cap>3</cap>
        <isEnable>true</isEnable>
        <lc_id>2</lc_id>
        <location>sample string 1</location>
      </md_cap_set_location>
      <md_cap_set_location>
        <cap>3</cap>
        <isEnable>true</isEnable>
        <lc_id>2</lc_id>
        <location>sample string 1</location>
      </md_cap_set_location>
    </locations>
    <total_cap>5</total_cap>
  </md_cap_set_department>
</ArrayOfmd_cap_set_department>

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 'List`1'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.