POST api/Room/CreateRatePlan

Documentation for 'CreateRatePlan'.

Request Information

Parameters

NameDescriptionAdditional information
req
Documentation for 'req'.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "Header": {
    "Username": "sample string 1",
    "Password": "sample string 2"
  },
  "Id": 1,
  "RatePlanName": "sample string 2",
  "MinStay": 3,
  "MaxStay": 4,
  "Occupancy": 5,
  "ExAdultPrice": 6.1,
  "ExChildPrice": 7.1,
  "RoomId": 8,
  "MealPlan": "sample string 9",
  "IsActive": 10,
  "Capacity": 11,
  "MinRate": 12.1,
  "MaxRate": 13.1,
  "Occupancytype": 14,
  "Action": "A"
}

application/xml, text/xml

Sample:
<RatePlanReq xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models.RoomMst">
  <Action>65</Action>
  <Capacity>11</Capacity>
  <ExAdultPrice>6.1</ExAdultPrice>
  <ExChildPrice>7.1</ExChildPrice>
  <Header>
    <Password>sample string 2</Password>
    <Username>sample string 1</Username>
  </Header>
  <Id>1</Id>
  <IsActive>10</IsActive>
  <MaxRate>13.1</MaxRate>
  <MaxStay>4</MaxStay>
  <MealPlan>sample string 9</MealPlan>
  <MinRate>12.1</MinRate>
  <MinStay>3</MinStay>
  <Occupancy>5</Occupancy>
  <Occupancytype>14</Occupancytype>
  <RatePlanName>sample string 2</RatePlanName>
  <RoomId>8</RoomId>
</RatePlanReq>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'RatePlanReq'.