POST api/stockroom/insert

Request Information

URI Parameters

None.

Body Parameters

InsertStockRoomRequestModel
NameDescriptionTypeAdditional information
StockRoomID

integer

None.

StockRoomName

string

None.

Description

string

None.

FinancialYearID

integer

None.

UserID

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "StockRoomID": 1,
  "StockRoomName": "sample string 2",
  "Description": "sample string 3",
  "FinancialYearID": 4,
  "UserID": 5
}

application/xml, text/xml

Sample:
<InsertStockRoomRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CrushMateBackendAPI.Controllers">
  <Description>sample string 3</Description>
  <FinancialYearID>4</FinancialYearID>
  <StockRoomID>1</StockRoomID>
  <StockRoomName>sample string 2</StockRoomName>
  <UserID>5</UserID>
</InsertStockRoomRequestModel>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.