POST api/AccountMaster/Add

Request Information

URI Parameters

None.

Body Parameters

AccountMasterModel
NameDescriptionTypeAdditional information
AccountId

integer

None.

AccountName

string

None.

CategoryId

integer

None.

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:
{
  "<AccountId>k__BackingField": 1,
  "<AccountName>k__BackingField": "sample string 2",
  "<CategoryId>k__BackingField": 3,
  "<IsActive>k__BackingField": true,
  "<narration>k__BackingField": "sample string 5",
  "<extraDate>k__BackingField": "2026-01-30T02:35:10.6141804+05:30",
  "<ExtraDatetime>k__BackingField": "sample string 7",
  "<extra1>k__BackingField": "sample string 8",
  "<extra2>k__BackingField": "sample string 9"
}

application/xml, text/xml

Sample:
<AccountMasterModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NSG_Accountings.MC">
  <_x003C_AccountId_x003E_k__BackingField>1</_x003C_AccountId_x003E_k__BackingField>
  <_x003C_AccountName_x003E_k__BackingField>sample string 2</_x003C_AccountName_x003E_k__BackingField>
  <_x003C_CategoryId_x003E_k__BackingField>3</_x003C_CategoryId_x003E_k__BackingField>
  <_x003C_ExtraDatetime_x003E_k__BackingField>sample string 7</_x003C_ExtraDatetime_x003E_k__BackingField>
  <_x003C_IsActive_x003E_k__BackingField>true</_x003C_IsActive_x003E_k__BackingField>
  <_x003C_extra1_x003E_k__BackingField>sample string 8</_x003C_extra1_x003E_k__BackingField>
  <_x003C_extra2_x003E_k__BackingField>sample string 9</_x003C_extra2_x003E_k__BackingField>
  <_x003C_extraDate_x003E_k__BackingField>2026-01-30T02:35:10.6141804+05:30</_x003C_extraDate_x003E_k__BackingField>
  <_x003C_narration_x003E_k__BackingField>sample string 5</_x003C_narration_x003E_k__BackingField>
</AccountMasterModel>

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 'AccountMasterModel'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.