POST api/UpdateReservation
Request Information
URI Parameters
None.
Body Parameters
UpdateReservationVm| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| Tenure | string |
None. |
|
| ShiftingDate | string |
None. |
|
| BookingDate | string |
None. |
|
| TenureStart | string |
None. |
|
| TenureEnd | string |
None. |
|
| BedId | integer |
None. |
|
| CustomerId | integer |
None. |
|
| LockInPeriod | integer |
None. |
|
| PaymentByDay | integer |
None. |
|
| Rating | integer |
None. |
|
| Charges | Collection of ReservationChargeVm |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"Tenure": "sample string 2",
"ShiftingDate": "sample string 3",
"BookingDate": "sample string 4",
"TenureStart": "sample string 5",
"TenureEnd": "sample string 6",
"BedId": 7,
"CustomerId": 8,
"LockInPeriod": 9,
"PaymentByDay": 10,
"Rating": 11,
"Charges": [
{
"Id": 1,
"Name": "sample string 2",
"PaymentForId": 3,
"Amount": 4.1
},
{
"Id": 1,
"Name": "sample string 2",
"PaymentForId": 3,
"Amount": 4.1
}
]
}
application/xml, text/xml
Sample:
<UpdateReservationVm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BrokerServer.Services.PG">
<BedId>7</BedId>
<BookingDate>sample string 4</BookingDate>
<Charges>
<ReservationChargeVm>
<Amount>4.1</Amount>
<Id>1</Id>
<Name>sample string 2</Name>
<PaymentForId>3</PaymentForId>
</ReservationChargeVm>
<ReservationChargeVm>
<Amount>4.1</Amount>
<Id>1</Id>
<Name>sample string 2</Name>
<PaymentForId>3</PaymentForId>
</ReservationChargeVm>
</Charges>
<CustomerId>8</CustomerId>
<Id>1</Id>
<LockInPeriod>9</LockInPeriod>
<PaymentByDay>10</PaymentByDay>
<Rating>11</Rating>
<ShiftingDate>sample string 3</ShiftingDate>
<Tenure>sample string 2</Tenure>
<TenureEnd>sample string 6</TenureEnd>
<TenureStart>sample string 5</TenureStart>
</UpdateReservationVm>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
Response| Name | Description | Type | Additional information |
|---|---|---|---|
| Success | boolean |
None. |
|
| Message | string |
None. |
|
| Description | string |
None. |
|
| Data | Object |
None. |
|
| Count | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"Success": true,
"Message": "sample string 2",
"Description": "sample string 3",
"Data": {},
"Count": 5
}
application/xml, text/xml
Sample:
<Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BrokerServer.Models"> <Count>5</Count> <Data /> <Description>sample string 3</Description> <Message>sample string 2</Message> <Success>true</Success> </Response>