POST api/SaveItem
Request Information
URI Parameters
None.
Body Parameters
item| Name | Description | Type | Additional information |
|---|---|---|---|
| groupid | string |
None. |
|
| itemid | string |
None. |
|
| itemname | string |
None. |
|
| unitid | string |
None. |
|
| ismixeditem | integer |
None. |
|
| hotelid | string |
None. |
|
| unitname | string |
None. |
|
| initialStock | decimal number |
None. |
|
| rate | decimal number |
None. |
|
| item_ingredients | Collection of item_ingredients |
None. |
Request Formats
application/json, text/json
Sample:
{
"groupid": "sample string 1",
"itemid": "sample string 2",
"itemname": "sample string 3",
"unitid": "sample string 4",
"ismixeditem": 5,
"hotelid": "sample string 6",
"unitname": "sample string 7",
"initialStock": 8.0,
"rate": 9.0,
"item_ingredients": [
{
"ingredientid": "sample string 1",
"itemid": "sample string 2",
"qty": 3.0,
"hotelid": "sample string 4"
},
{
"ingredientid": "sample string 1",
"itemid": "sample string 2",
"qty": 3.0,
"hotelid": "sample string 4"
}
]
}
application/xml, text/xml
Sample:
<item xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/InventoryAPI.Models">
<groupid>sample string 1</groupid>
<hotelid>sample string 6</hotelid>
<initialStock>8</initialStock>
<ismixeditem>5</ismixeditem>
<item_ingredients>
<item_ingredients>
<hotelid>sample string 4</hotelid>
<ingredientid>sample string 1</ingredientid>
<itemid>sample string 2</itemid>
<qty>3</qty>
</item_ingredients>
<item_ingredients>
<hotelid>sample string 4</hotelid>
<ingredientid>sample string 1</ingredientid>
<itemid>sample string 2</itemid>
<qty>3</qty>
</item_ingredients>
</item_ingredients>
<itemid>sample string 2</itemid>
<itemname>sample string 3</itemname>
<rate>9</rate>
<unitid>sample string 4</unitid>
<unitname>sample string 7</unitname>
</item>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
HttpResponseMessage| Name | 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. |