PUT api/RoomCategory/Update
Request Information
URI Parameters
None.
Body Parameters
RoomCategoryUpdateDto| Name | Description | Type | Additional information |
|---|---|---|---|
| WebSiteID | globally unique identifier |
None. |
|
| HotelID | globally unique identifier |
None. |
|
| Languages | Collection of RoomCategoryLanguageUpdateDto |
None. |
|
| ID | globally unique identifier |
Required |
Request Formats
application/json, text/json
Sample:
{
"webSiteID": "2ede7a07-6782-4796-bc84-0942a77a3aa2",
"hotelID": "06e469ed-1711-414b-9925-e09b37307c65",
"languages": [
{
"roomCategoryID": "3bf7ef08-f9ec-4ff7-92dc-7214be5796f1",
"roomCategory": "sample string 1",
"languageID": "a9471e65-d0cf-4ad1-b2b5-286c841ba792",
"id": "fabbd5bd-ee89-4117-ba19-982c21deaa47"
},
{
"roomCategoryID": "3bf7ef08-f9ec-4ff7-92dc-7214be5796f1",
"roomCategory": "sample string 1",
"languageID": "a9471e65-d0cf-4ad1-b2b5-286c841ba792",
"id": "fabbd5bd-ee89-4117-ba19-982c21deaa47"
}
],
"id": "15ee29c8-6ebf-4812-bd38-38ef180fff6e"
}
application/xml, text/xml
Sample:
<RoomCategoryUpdateDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RS.Core.Service.DTOs">
<ID>15ee29c8-6ebf-4812-bd38-38ef180fff6e</ID>
<HotelID>06e469ed-1711-414b-9925-e09b37307c65</HotelID>
<Languages>
<RoomCategoryLanguageUpdateDto>
<ID>fabbd5bd-ee89-4117-ba19-982c21deaa47</ID>
<LanguageID>a9471e65-d0cf-4ad1-b2b5-286c841ba792</LanguageID>
<RoomCategory>sample string 1</RoomCategory>
<RoomCategoryID>3bf7ef08-f9ec-4ff7-92dc-7214be5796f1</RoomCategoryID>
</RoomCategoryLanguageUpdateDto>
<RoomCategoryLanguageUpdateDto>
<ID>fabbd5bd-ee89-4117-ba19-982c21deaa47</ID>
<LanguageID>a9471e65-d0cf-4ad1-b2b5-286c841ba792</LanguageID>
<RoomCategory>sample string 1</RoomCategory>
<RoomCategoryID>3bf7ef08-f9ec-4ff7-92dc-7214be5796f1</RoomCategoryID>
</RoomCategoryLanguageUpdateDto>
</Languages>
<WebSiteID>2ede7a07-6782-4796-bc84-0942a77a3aa2</WebSiteID>
</RoomCategoryUpdateDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
text/html
Sample:
{"WebSiteID":"2ede7a07-6782-4796-bc84-0942a77a3aa2","HotelID":"06e469ed-1711-414b-9925-e09b37307c65","Languages":[{"RoomCategoryID":"3bf7ef08-f9ec-4ff7-92dc-7214be5796f1","RoomCategory":"sample string 1","LanguageID":"a9471e65-d0cf-4ad1-b2b5-286c841ba792","ID":"fabbd5bd-ee89-4117-ba19-982c21deaa47"},{"RoomCategoryID":"3bf7ef08-f9ec-4ff7-92dc-7214be5796f1","RoomCategory":"sample string 1","LanguageID":"a9471e65-d0cf-4ad1-b2b5-286c841ba792","ID":"fabbd5bd-ee89-4117-ba19-982c21deaa47"}],"ID":"15ee29c8-6ebf-4812-bd38-38ef180fff6e"}
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml, text/html
Sample:
Sample not available.