POST api/Occupancy

Documentation for 'Post'.

Request Information

Parameters

NameDescriptionAdditional information
value
Documentation for 'value'.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "LastName": "sample string 2",
    "FirstName": "sample string 3",
    "RoomNumber": "sample string 4",
    "PostZip": "sample string 5"
  },
  {
    "Id": 1,
    "LastName": "sample string 2",
    "FirstName": "sample string 3",
    "RoomNumber": "sample string 4",
    "PostZip": "sample string 5"
  },
  {
    "Id": 1,
    "LastName": "sample string 2",
    "FirstName": "sample string 3",
    "RoomNumber": "sample string 4",
    "PostZip": "sample string 5"
  }
]

application/xml, text/xml

Sample:
<ArrayOfOccupant xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HotelBilling.Models">
  <Occupant>
    <FirstName>sample string 3</FirstName>
    <Id>1</Id>
    <LastName>sample string 2</LastName>
    <PostZip>sample string 5</PostZip>
    <RoomNumber>sample string 4</RoomNumber>
  </Occupant>
  <Occupant>
    <FirstName>sample string 3</FirstName>
    <Id>1</Id>
    <LastName>sample string 2</LastName>
    <PostZip>sample string 5</PostZip>
    <RoomNumber>sample string 4</RoomNumber>
  </Occupant>
  <Occupant>
    <FirstName>sample string 3</FirstName>
    <Id>1</Id>
    <LastName>sample string 2</LastName>
    <PostZip>sample string 5</PostZip>
    <RoomNumber>sample string 4</RoomNumber>
  </Occupant>
</ArrayOfOccupant>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Response body formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "LastName": "sample string 2",
    "FirstName": "sample string 3",
    "RoomNumber": "sample string 4",
    "PostZip": "sample string 5"
  },
  {
    "Id": 1,
    "LastName": "sample string 2",
    "FirstName": "sample string 3",
    "RoomNumber": "sample string 4",
    "PostZip": "sample string 5"
  },
  {
    "Id": 1,
    "LastName": "sample string 2",
    "FirstName": "sample string 3",
    "RoomNumber": "sample string 4",
    "PostZip": "sample string 5"
  }
]

application/xml, text/xml

Sample:
<ArrayOfOccupant xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HotelBilling.Models">
  <Occupant>
    <FirstName>sample string 3</FirstName>
    <Id>1</Id>
    <LastName>sample string 2</LastName>
    <PostZip>sample string 5</PostZip>
    <RoomNumber>sample string 4</RoomNumber>
  </Occupant>
  <Occupant>
    <FirstName>sample string 3</FirstName>
    <Id>1</Id>
    <LastName>sample string 2</LastName>
    <PostZip>sample string 5</PostZip>
    <RoomNumber>sample string 4</RoomNumber>
  </Occupant>
  <Occupant>
    <FirstName>sample string 3</FirstName>
    <Id>1</Id>
    <LastName>sample string 2</LastName>
    <PostZip>sample string 5</PostZip>
    <RoomNumber>sample string 4</RoomNumber>
  </Occupant>
</ArrayOfOccupant>