POST api/UnitTypes/UpdateUnitType
Request Information
URI Parameters
None.
Body Parameters
UnitType| Name | Description | Type | Additional information |
|---|---|---|---|
| UnitTypeID | integer |
None. |
|
| Name | string |
None. |
|
| Rooms | integer |
None. |
|
| Bathrooms | decimal number |
None. |
|
| MinStay | integer |
None. |
|
| GrandCollection | boolean |
None. |
|
| ResortID | integer |
None. |
|
| ResortName | string |
None. |
|
| PMID | integer |
None. |
|
| PMName | string |
None. |
|
| PropertyTypeID | integer |
None. |
|
| PropertyTypeName | string |
None. |
|
| MinimumAge | integer |
None. |
|
| NumberOfActiveProperties | integer |
None. |
|
| CollectionID | integer |
None. |
|
| CollectionName | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"UnitTypeID": 1,
"Name": "sample string 2",
"Rooms": 3,
"Bathrooms": 4.0,
"MinStay": 5,
"GrandCollection": true,
"ResortID": 7,
"ResortName": "sample string 8",
"PMID": 9,
"PMName": "sample string 10",
"PropertyTypeID": 11,
"PropertyTypeName": "sample string 12",
"MinimumAge": 13,
"NumberOfActiveProperties": 14,
"CollectionID": 15,
"CollectionName": "sample string 16"
}
application/xml, text/xml
Sample:
<UnitType xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <UnitTypeID>1</UnitTypeID> <Name>sample string 2</Name> <Rooms>3</Rooms> <Bathrooms>4</Bathrooms> <MinStay>5</MinStay> <GrandCollection>true</GrandCollection> <ResortID>7</ResortID> <ResortName>sample string 8</ResortName> <PMID>9</PMID> <PMName>sample string 10</PMName> <PropertyTypeID>11</PropertyTypeID> <PropertyTypeName>sample string 12</PropertyTypeName> <MinimumAge>13</MinimumAge> <NumberOfActiveProperties>14</NumberOfActiveProperties> <CollectionID>15</CollectionID> <CollectionName>sample string 16</CollectionName> </UnitType>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
None.