PUT api/Hotel
Request Information
URI Parameters
None.
Body Parameters
Collection of Hotel| Name | Description | Type | Additional information |
|---|---|---|---|
| HotelId | integer |
None. |
|
| ReservationId | integer |
None. |
|
| HotelName | string |
None. |
|
| NumberOfNights | integer |
None. |
|
| NumberOfRooms | integer |
None. |
|
| Comments | string |
None. |
|
| HotelRep | string |
None. |
|
| PhoneNumber | string |
None. |
|
| Occupants | Collection of HotelOccupant |
None. |
|
| Active | boolean |
None. |
|
| LastUpdatedBy | string |
None. |
|
| IsComplete | boolean |
None. |
Request Formats
application/json, text/json
Sample:
[
{
"HotelId": 1,
"ReservationId": 2,
"HotelName": "sample string 3",
"NumberOfNights": 4,
"NumberOfRooms": 5,
"Comments": "sample string 6",
"HotelRep": "sample string 7",
"PhoneNumber": "sample string 8",
"Occupants": [
{
"HotelOccupantId": 1,
"HotelId": 2,
"Name": "sample string 3",
"MemberNumber": "sample string 4",
"ConfirmationNumber": "sample string 5",
"Active": true,
"LastUpdatedBy": "sample string 7"
},
{
"HotelOccupantId": 1,
"HotelId": 2,
"Name": "sample string 3",
"MemberNumber": "sample string 4",
"ConfirmationNumber": "sample string 5",
"Active": true,
"LastUpdatedBy": "sample string 7"
}
],
"Active": true,
"LastUpdatedBy": "sample string 10",
"IsComplete": true
},
{
"HotelId": 1,
"ReservationId": 2,
"HotelName": "sample string 3",
"NumberOfNights": 4,
"NumberOfRooms": 5,
"Comments": "sample string 6",
"HotelRep": "sample string 7",
"PhoneNumber": "sample string 8",
"Occupants": [
{
"HotelOccupantId": 1,
"HotelId": 2,
"Name": "sample string 3",
"MemberNumber": "sample string 4",
"ConfirmationNumber": "sample string 5",
"Active": true,
"LastUpdatedBy": "sample string 7"
},
{
"HotelOccupantId": 1,
"HotelId": 2,
"Name": "sample string 3",
"MemberNumber": "sample string 4",
"ConfirmationNumber": "sample string 5",
"Active": true,
"LastUpdatedBy": "sample string 7"
}
],
"Active": true,
"LastUpdatedBy": "sample string 10",
"IsComplete": true
}
]
application/xml, text/xml
Sample:
<ArrayOfHotel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bba.Reservations.Models">
<Hotel>
<Active>true</Active>
<Comments>sample string 6</Comments>
<HotelId>1</HotelId>
<HotelName>sample string 3</HotelName>
<HotelRep>sample string 7</HotelRep>
<IsComplete>true</IsComplete>
<LastUpdatedBy>sample string 10</LastUpdatedBy>
<NumberOfNights>4</NumberOfNights>
<NumberOfRooms>5</NumberOfRooms>
<Occupants>
<HotelOccupant>
<Active>true</Active>
<ConfirmationNumber>sample string 5</ConfirmationNumber>
<HotelId>2</HotelId>
<HotelOccupantId>1</HotelOccupantId>
<LastUpdatedBy>sample string 7</LastUpdatedBy>
<MemberNumber>sample string 4</MemberNumber>
<Name>sample string 3</Name>
</HotelOccupant>
<HotelOccupant>
<Active>true</Active>
<ConfirmationNumber>sample string 5</ConfirmationNumber>
<HotelId>2</HotelId>
<HotelOccupantId>1</HotelOccupantId>
<LastUpdatedBy>sample string 7</LastUpdatedBy>
<MemberNumber>sample string 4</MemberNumber>
<Name>sample string 3</Name>
</HotelOccupant>
</Occupants>
<PhoneNumber>sample string 8</PhoneNumber>
<ReservationId>2</ReservationId>
</Hotel>
<Hotel>
<Active>true</Active>
<Comments>sample string 6</Comments>
<HotelId>1</HotelId>
<HotelName>sample string 3</HotelName>
<HotelRep>sample string 7</HotelRep>
<IsComplete>true</IsComplete>
<LastUpdatedBy>sample string 10</LastUpdatedBy>
<NumberOfNights>4</NumberOfNights>
<NumberOfRooms>5</NumberOfRooms>
<Occupants>
<HotelOccupant>
<Active>true</Active>
<ConfirmationNumber>sample string 5</ConfirmationNumber>
<HotelId>2</HotelId>
<HotelOccupantId>1</HotelOccupantId>
<LastUpdatedBy>sample string 7</LastUpdatedBy>
<MemberNumber>sample string 4</MemberNumber>
<Name>sample string 3</Name>
</HotelOccupant>
<HotelOccupant>
<Active>true</Active>
<ConfirmationNumber>sample string 5</ConfirmationNumber>
<HotelId>2</HotelId>
<HotelOccupantId>1</HotelOccupantId>
<LastUpdatedBy>sample string 7</LastUpdatedBy>
<MemberNumber>sample string 4</MemberNumber>
<Name>sample string 3</Name>
</HotelOccupant>
</Occupants>
<PhoneNumber>sample string 8</PhoneNumber>
<ReservationId>2</ReservationId>
</Hotel>
</ArrayOfHotel>
application/x-www-form-urlencoded
Sample:
Sample not available.
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. |