POST api/msc/subCommodities

Request Information

URI Parameters

None.

Body Parameters

Collection of MSCSubCommodity
NameDescriptionTypeAdditional information
Dept

integer

None.

Category

integer

None.

Commodity

integer

None.

SubCommodity

integer

None.

Name

string

None.

Active

boolean

None.

SubCommodityCode

string

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "$id": "1",
    "dept": 1,
    "category": 2,
    "commodity": 3,
    "subCommodity": 4,
    "name": "sample string 5",
    "active": true,
    "subCommodityCode": "sample string 7"
  },
  {
    "$ref": "1"
  }
]

application/xml, text/xml

Sample:
<ArrayOfMSCSubCommodity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EziManager.Models.EMC.Departments">
  <MSCSubCommodity>
    <Active>true</Active>
    <Category>2</Category>
    <Commodity>3</Commodity>
    <Dept>1</Dept>
    <Name>sample string 5</Name>
    <SubCommodity>4</SubCommodity>
    <SubCommodityCode>sample string 7</SubCommodityCode>
  </MSCSubCommodity>
  <MSCSubCommodity>
    <Active>true</Active>
    <Category>2</Category>
    <Commodity>3</Commodity>
    <Dept>1</Dept>
    <Name>sample string 5</Name>
    <SubCommodity>4</SubCommodity>
    <SubCommodityCode>sample string 7</SubCommodityCode>
  </MSCSubCommodity>
</ArrayOfMSCSubCommodity>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

None.