POST api/HotelOccupant
Request Information
URI Parameters
None.
Body Parameters
Collection of HotelOccupantName | Description | Type | Additional information |
---|---|---|---|
HotelOccupantId | integer |
None. |
|
HotelId | integer |
None. |
|
Name | string |
None. |
|
MemberNumber | string |
None. |
|
ConfirmationNumber | string |
None. |
|
Active | boolean |
None. |
|
LastUpdatedBy | string |
None. |
Request Formats
application/json, text/json
Sample:
[ { "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" } ]
application/xml, text/xml
Sample:
<ArrayOfHotelOccupant xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bba.Reservations.Models"> <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> </ArrayOfHotelOccupant>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessageName | 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. |