POST api/stockassign/insert

Request Information

URI Parameters

None.

Body Parameters

InsertStockAssignRequestModel
NameDescriptionTypeAdditional information
SparepartID

integer

None.

StockRoomID

integer

None.

StockShelfID

integer

None.

StockRackID

integer

None.

Qty

decimal number

None.

Remarks

string

None.

UserID

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "SparepartID": 1,
  "StockRoomID": 2,
  "StockShelfID": 3,
  "StockRackID": 4,
  "Qty": 5.0,
  "Remarks": "sample string 6",
  "UserID": 7
}

application/xml, text/xml

Sample:
<InsertStockAssignRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CrushMateBackendAPI.Controllers">
  <Qty>5</Qty>
  <Remarks>sample string 6</Remarks>
  <SparepartID>1</SparepartID>
  <StockRackID>4</StockRackID>
  <StockRoomID>2</StockRoomID>
  <StockShelfID>3</StockShelfID>
  <UserID>7</UserID>
</InsertStockAssignRequestModel>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.