POST api/AddCategory

Request Information

URI Parameters

None.

Body Parameters

CategoryModel
NameDescriptionTypeAdditional information
CategoryID

integer

None.

CategoryName

string

None.

CategoryDesc

string

None.

ParentID

integer

None.

SortOrder

integer

None.

Status

string

None.

CreatedBy

string

None.

CreatedOn

date

None.

RecordCount

integer

None.

PageNumber

integer

None.

TotalPages

integer

None.

Color

string

None.

Request Formats

application/json, text/json

Sample:
{
  "CategoryID": 1,
  "CategoryName": "sample string 2",
  "CategoryDesc": "sample string 3",
  "ParentID": 4,
  "SortOrder": 5,
  "Status": "sample string 6",
  "CreatedBy": "sample string 7",
  "CreatedOn": "2024-12-22T01:23:56.695195-08:00",
  "RecordCount": 9,
  "PageNumber": 10,
  "TotalPages": 11,
  "Color": "sample string 12"
}

application/xml, text/xml

Sample:
<CategoryModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MainService.Models">
  <CategoryDesc>sample string 3</CategoryDesc>
  <CategoryID>1</CategoryID>
  <CategoryName>sample string 2</CategoryName>
  <Color>sample string 12</Color>
  <CreatedBy>sample string 7</CreatedBy>
  <CreatedOn>2024-12-22T01:23:56.695195-08:00</CreatedOn>
  <PageNumber>10</PageNumber>
  <ParentID>4</ParentID>
  <RecordCount>9</RecordCount>
  <SortOrder>5</SortOrder>
  <Status>sample string 6</Status>
  <TotalPages>11</TotalPages>
</CategoryModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

integer

Response Formats

application/json, text/json

Sample:
1

application/xml, text/xml

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