POST api/WarehouseStock/UpdateStockQuantity

Request Information

URI Parameters

None.

Body Parameters

StockUpdateDTO
NameDescriptionTypeAdditional information
stockRef

string

None.

warehouseCode

string

None.

quantity

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "stockRef": "sample string 1",
  "warehouseCode": "sample string 2",
  "quantity": 3.0
}

application/xml, text/xml

Sample:
<StockUpdateDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DMH.DTO.Upload">
  <_x003C_quantity_x003E_k__BackingField>3</_x003C_quantity_x003E_k__BackingField>
  <_x003C_stockRef_x003E_k__BackingField>sample string 1</_x003C_stockRef_x003E_k__BackingField>
  <_x003C_warehouseCode_x003E_k__BackingField>sample string 2</_x003C_warehouseCode_x003E_k__BackingField>
</StockUpdateDTO>

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

Response Information

Resource Description

boolean

Response Formats

application/json, text/json

Sample:
true

application/xml, text/xml

Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>