POST api/explosive/insert

Request Information

URI Parameters

None.

Body Parameters

InsertExplosiveRequestModel
NameDescriptionTypeAdditional information
ExplosiveID

integer

None.

BranchID

integer

None.

FinancialYearID

integer

None.

Code

string

None.

Name

string

None.

UnitID

integer

None.

UnitPrice

decimal number

None.

OpeningStock

decimal number

None.

Remarks

string

None.

UserID

integer

None.

HSNCodeID

integer

None.

ReorderLevel

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "ExplosiveID": 1,
  "BranchID": 2,
  "FinancialYearID": 3,
  "Code": "sample string 4",
  "Name": "sample string 5",
  "UnitID": 6,
  "UnitPrice": 7.0,
  "OpeningStock": 8.0,
  "Remarks": "sample string 9",
  "UserID": 10,
  "HSNCodeID": 11,
  "ReorderLevel": 12.0
}

application/xml, text/xml

Sample:
<InsertExplosiveRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CrushMateBackendAPI.Controllers">
  <BranchID>2</BranchID>
  <Code>sample string 4</Code>
  <ExplosiveID>1</ExplosiveID>
  <FinancialYearID>3</FinancialYearID>
  <HSNCodeID>11</HSNCodeID>
  <Name>sample string 5</Name>
  <OpeningStock>8</OpeningStock>
  <Remarks>sample string 9</Remarks>
  <ReorderLevel>12</ReorderLevel>
  <UnitID>6</UnitID>
  <UnitPrice>7</UnitPrice>
  <UserID>10</UserID>
</InsertExplosiveRequestModel>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.