POST api/Product/Category

Request Information

URI Parameters

None.

Body Parameters

ProductCategory
NameDescriptionTypeAdditional information
id

integer

None.

description

string

None.

mainCategoryId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "description": "sample string 1",
  "mainCategoryId": 1
}

application/xml, text/xml

Sample:
<ProductCategory xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <id>1</id>
  <description>sample string 1</description>
  <mainCategoryId>1</mainCategoryId>
</ProductCategory>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ProductCategory
NameDescriptionTypeAdditional information
id

integer

None.

description

string

None.

mainCategoryId

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "id": 1,
  "description": "sample string 1",
  "mainCategoryId": 1
}

application/xml, text/xml

Sample:
<ProductCategory xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <id>1</id>
  <description>sample string 1</description>
  <mainCategoryId>1</mainCategoryId>
</ProductCategory>