POST api/SaveIngredients?ItemID={ItemID}&hotelid={hotelid}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| ItemID | string |
Required |
|
| hotelid | string |
Required |
Body Parameters
item_ingredients| Name | Description | Type | Additional information |
|---|---|---|---|
| ingredientid | string |
None. |
|
| itemid | string |
None. |
|
| qty | decimal number |
None. |
|
| hotelid | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"ingredientid": "sample string 1",
"itemid": "sample string 2",
"qty": 3.0,
"hotelid": "sample string 4"
}
application/xml, text/xml
Sample:
<item_ingredients xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/InventoryAPI.Models"> <hotelid>sample string 4</hotelid> <ingredientid>sample string 1</ingredientid> <itemid>sample string 2</itemid> <qty>3</qty> </item_ingredients>
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. |