POST api/SubCategory

Create a category.

Request Information

URI Parameters

None.

Body Parameters

CreateSubCategoryModel
NameDescriptionTypeAdditional information
Name

The product name as the user will see it.

string

Required

Code

The code.

string

Required

Abbreviation

The Abbreviation.

string

Required

Active

Only active products shown to end users. Required.

boolean

Required

ModifiedBy

An identifier for the user that altered this SubCategory.

string

Required

Request Formats

application/json, text/json

Sample:
{
  "Name": "sample string 1",
  "Code": "sample string 2",
  "Abbreviation": "sample string 3",
  "Active": true,
  "ModifiedBy": "sample string 4"
}

text/xml

Sample:
<CreateSubCategoryModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Privacy.Proc.API.Models.SubCategory">
  <Abbreviation>sample string 3</Abbreviation>
  <Active>true</Active>
  <Code>sample string 2</Code>
  <ModifiedBy>sample string 4</ModifiedBy>
  <Name>sample string 1</Name>
</CreateSubCategoryModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

boolean

Response Formats

application/json, text/json

Sample:
true

text/xml

Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>