PUT api/v2/inventory/items/{id}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
Required |
Body Parameters
ItemDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| Name | string |
None. |
|
| Barcodes | Collection of InventoryItemBarcode |
None. |
|
| UM | string |
None. |
|
| UMId | integer |
None. |
|
| Cost | decimal number |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"Name": "sample string 2",
"Barcodes": [
{
"Id": 1,
"InventoryItemId": 2,
"Barcode": "sample string 3"
},
{
"Id": 1,
"InventoryItemId": 2,
"Barcode": "sample string 3"
}
],
"UM": "sample string 3",
"UMId": 4,
"Cost": 5.0
}
text/html
Sample:
{"Id":1,"Name":"sample string 2","Barcodes":[{"Id":1,"InventoryItemId":2,"Barcode":"sample string 3"},{"Id":1,"InventoryItemId":2,"Barcode":"sample string 3"}],"UM":"sample string 3","UMId":4,"Cost":5.0}
application/xml, text/xml
Sample:
<ItemDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Gregsys.DTO">
<Barcodes xmlns:d2p1="http://schemas.datacontract.org/2004/07/Gregsys.Domain.Models.Inventory">
<d2p1:InventoryItemBarcode>
<d2p1:Barcode>sample string 3</d2p1:Barcode>
<d2p1:Id>1</d2p1:Id>
<d2p1:InventoryItemId>2</d2p1:InventoryItemId>
</d2p1:InventoryItemBarcode>
<d2p1:InventoryItemBarcode>
<d2p1:Barcode>sample string 3</d2p1:Barcode>
<d2p1:Id>1</d2p1:Id>
<d2p1:InventoryItemId>2</d2p1:InventoryItemId>
</d2p1:InventoryItemBarcode>
</Barcodes>
<Cost>5</Cost>
<Id>1</Id>
<Name>sample string 2</Name>
<UM>sample string 3</UM>
<UMId>4</UMId>
</ItemDTO>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResponseBase| Name | Description | Type | Additional information |
|---|---|---|---|
| isSuccess | boolean |
None. |
|
| message | string |
None. |
|
| data | Object |
None. |
|
| statusCode | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"isSuccess": true,
"message": "sample string 2",
"data": {},
"statusCode": 4
}
text/html
Sample:
{"isSuccess":true,"message":"sample string 2","data":{},"statusCode":4}
application/xml, text/xml
Sample:
<ResponseBase xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Gregsys.WebApi.Models"> <data /> <isSuccess>true</isSuccess> <message>sample string 2</message> <statusCode>4</statusCode> </ResponseBase>