POST api/CategoryMaster/Add

Request Information

URI Parameters

None.

Body Parameters

CategoryMasterModel
NameDescriptionTypeAdditional information
CategoryId

integer

None.

CategoryName

string

Required

ParentCategoryId

integer

Required

TypeId

integer

Required

IsActive

boolean

None.

narration

string

None.

extraDate

date

None.

ExtraDatetime

string

None.

extra1

string

None.

extra2

string

None.

Request Formats

application/json, text/json

Sample:
{
  "<CategoryId>k__BackingField": 1,
  "<CategoryName>k__BackingField": "sample string 2",
  "<ParentCategoryId>k__BackingField": 3,
  "<TypeId>k__BackingField": 4,
  "<IsActive>k__BackingField": true,
  "<narration>k__BackingField": "sample string 6",
  "<extraDate>k__BackingField": "2026-01-30T02:38:10.4334431+05:30",
  "<ExtraDatetime>k__BackingField": "sample string 8",
  "<extra1>k__BackingField": "sample string 9",
  "<extra2>k__BackingField": "sample string 10"
}

application/xml, text/xml

Sample:
<CategoryMasterModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NSG_Accountings.MC">
  <_x003C_CategoryId_x003E_k__BackingField>1</_x003C_CategoryId_x003E_k__BackingField>
  <_x003C_CategoryName_x003E_k__BackingField>sample string 2</_x003C_CategoryName_x003E_k__BackingField>
  <_x003C_ExtraDatetime_x003E_k__BackingField>sample string 8</_x003C_ExtraDatetime_x003E_k__BackingField>
  <_x003C_IsActive_x003E_k__BackingField>true</_x003C_IsActive_x003E_k__BackingField>
  <_x003C_ParentCategoryId_x003E_k__BackingField>3</_x003C_ParentCategoryId_x003E_k__BackingField>
  <_x003C_TypeId_x003E_k__BackingField>4</_x003C_TypeId_x003E_k__BackingField>
  <_x003C_extra1_x003E_k__BackingField>sample string 9</_x003C_extra1_x003E_k__BackingField>
  <_x003C_extra2_x003E_k__BackingField>sample string 10</_x003C_extra2_x003E_k__BackingField>
  <_x003C_extraDate_x003E_k__BackingField>2026-01-30T02:38:10.4334431+05:30</_x003C_extraDate_x003E_k__BackingField>
  <_x003C_narration_x003E_k__BackingField>sample string 6</_x003C_narration_x003E_k__BackingField>
</CategoryMasterModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'CategoryMasterModel'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.