POST api/product/insertOrUpdateSubcategory

Request Information

URI Parameters

None.

Body Parameters

SubcategoryModel
NameDescriptionTypeAdditional information
SubcategoryId

integer

None.

SubcategoryName

string

None.

CategoryId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "SubcategoryId": 1,
  "SubcategoryName": "sample string 2",
  "CategoryId": 3
}

application/xml, text/xml

Sample:
<SubcategoryModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MasAuto.Models">
  <CategoryId>3</CategoryId>
  <SubcategoryId>1</SubcategoryId>
  <SubcategoryName>sample string 2</SubcategoryName>
</SubcategoryModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ResponseWrapper
NameDescriptionTypeAdditional information
ResponseCode

integer

None.

Message

string

None.

Response

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "ResponseCode": 1,
  "Message": "sample string 2",
  "Response": {}
}

application/xml, text/xml

Sample:
<ResponseWrapper xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MasAuto.Models">
  <Message>sample string 2</Message>
  <Response />
  <ResponseCode>1</ResponseCode>
</ResponseWrapper>