PUT api/Materials/{store}/{code}
Update the Material "virtual" stock level (no stock movement is registered)
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
store |
The Store code where to put the Material |
string |
Required |
code |
The Material code |
string |
Required |
Body Parameters
The values to update the stock level
StockName | Description | Type | Additional information |
---|---|---|---|
Quantity |
The quantity level |
decimal number |
Required Equal or above: 0 |
UnitCost |
The unitary cost of the Material (default: 0) |
decimal number |
Equal or above: 0 |
Request Formats
Sample:
{ "Quantity": 1.1, "UnitCost": 1.1 }
Sample:
<Stock xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models.Materiais"> <Quantity>1.1</Quantity> <UnitCost>1.1</UnitCost> </Stock>
Sample:
Sample not available.
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Quantity" 1.1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="UnitCost" 1.1 --MultipartDataMediaFormatterBoundary1q2w3e--
Response Information
Resource Description
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version |
|
Version |
None. |
Content |
|
HttpContent |
None. |
StatusCode |
|
HttpStatusCode |
None. |
ReasonPhrase |
|
string |
None. |
Headers |
|
Collection of Object |
None. |
RequestMessage |
|
HttpRequestMessage |
None. |
IsSuccessStatusCode |
|
boolean |
None. |