POST api/applicant/hotelApplication/SaveHotelEstablishmentDetails

Request Information

URI Parameters

None.

Body Parameters

HotelEstablishmentPostDTO
NameDescriptionTypeAdditional information
AppEstablishmentID

integer

None.

ApplicationID

string

Required

SectionID

integer

Required

EstablishmentName

string

Required

Matching regular expression pattern: ^[a-zA-Z\s]+$

String length: inclusive between 0 and 512

NameOfOwner

string

Required

Matching regular expression pattern: ^[a-zA-Z\s]+$

String length: inclusive between 0 and 512

OwnershipType

string

Matching regular expression pattern: ^[a-zA-Z\s]+$

String length: inclusive between 0 and 512

EstablishmentFullPostalAddress

string

Required

Matching regular expression pattern: ^[a-zA-Z0-9\s,.\-/#@]+$

String length: inclusive between 0 and 1024

EstablishmentDistrictID

integer

Required

DistanceFromAirportInKm

string

Required

Matching regular expression pattern: ^\d+(\.\d{1,2})?$

String length: inclusive between 0 and 10

DistanceFromRailwayInKm

string

Required

Matching regular expression pattern: ^\d+(\.\d{1,2})?$

String length: inclusive between 0 and 10

EstablishmentContactNumber

string

Required

Matching regular expression pattern: ^[6-9]\d{9}$

EstablishmentEmail

string

Required

Matching regular expression pattern: ^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$

String length: inclusive between 0 and 100

EstablishmentWebsite

string

String length: inclusive between 0 and 100

WeatherOwnBuildingOrRented

boolean

Required

IsPublicOrPrivateLimitedCompany

boolean

Required

TrainedStaffFromRecognizedInstitute

boolean

Required

ManagerNameAndEducation

string

Required

Matching regular expression pattern: ^[a-zA-Z0-9\s,().]+$

String length: inclusive between 0 and 2048

NoOfEmployeedLocalOrNonlocal

string

Required

Matching regular expression pattern: ^[a-zA-Z0-9\s,:()\-]+$

String length: inclusive between 0 and 512

StaffNameAndAddress

string

Required

Matching regular expression pattern: ^[a-zA-Z0-9\s,().]+$

String length: inclusive between 0 and 2048

ProposedPricingStructure

string

Matching regular expression pattern: ^[a-zA-Z0-9\s,:()]+$

String length: inclusive between 0 and 2048

NoOfBathrooms

string

Matching regular expression pattern: ^\d+$

String length: inclusive between 0 and 50

NoOfBeds

string

Matching regular expression pattern: ^\d+$

String length: inclusive between 0 and 50

AreaOfExistingHouse

string

Matching regular expression pattern: ^[a-zA-Z0-9\s,:()]+$

String length: inclusive between 0 and 50

SingleRoomCountAndAreaInSqft

string

Matching regular expression pattern: ^[a-zA-Z0-9\s,:()]+$

String length: inclusive between 0 and 100

DoubleRoomCountAndAreaInSqft

string

Matching regular expression pattern: ^[a-zA-Z0-9\s,:()]+$

String length: inclusive between 0 and 100

SuiteRoomCountAndAreaInSqft

string

Matching regular expression pattern: ^[a-zA-Z0-9\s,:()]+$

String length: inclusive between 0 and 100

DateOfCommencement

date

Data type: Date

GuestCapacity

string

Matching regular expression pattern: ^\d+$

String length: inclusive between 0 and 50

IsCompleted

boolean

None.

UserID

string

Required

ActionTakenBy

string

Required

IPAddress

string

Required

Request Formats

application/json, text/json

Sample:
{
  "AppEstablishmentID": 1,
  "ApplicationID": "sample string 1",
  "SectionID": 2,
  "EstablishmentName": "sample string 3",
  "NameOfOwner": "sample string 4",
  "OwnershipType": "sample string 5",
  "EstablishmentFullPostalAddress": "sample string 6",
  "EstablishmentDistrictID": 7,
  "DistanceFromAirportInKm": "sample string 8",
  "DistanceFromRailwayInKm": "sample string 9",
  "EstablishmentContactNumber": "sample string 10",
  "EstablishmentEmail": "sample string 11",
  "EstablishmentWebsite": "sample string 12",
  "WeatherOwnBuildingOrRented": true,
  "IsPublicOrPrivateLimitedCompany": true,
  "TrainedStaffFromRecognizedInstitute": true,
  "ManagerNameAndEducation": "sample string 16",
  "NoOfEmployeedLocalOrNonlocal": "sample string 17",
  "StaffNameAndAddress": "sample string 18",
  "ProposedPricingStructure": "sample string 19",
  "NoOfBathrooms": "sample string 20",
  "NoOfBeds": "sample string 21",
  "AreaOfExistingHouse": "sample string 22",
  "SingleRoomCountAndAreaInSqft": "sample string 23",
  "DoubleRoomCountAndAreaInSqft": "sample string 24",
  "SuiteRoomCountAndAreaInSqft": "sample string 25",
  "DateOfCommencement": "2026-06-24T22:18:39.6547989+05:30",
  "GuestCapacity": "sample string 26",
  "IsCompleted": true,
  "UserID": "sample string 28",
  "ActionTakenBy": "sample string 29",
  "IPAddress": "sample string 30"
}

application/xml, text/xml

Sample:
<HotelEstablishmentPostDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Tourism.Entities.CustomHotelCategoryModels">
  <ActionTakenBy>sample string 29</ActionTakenBy>
  <AppEstablishmentID>1</AppEstablishmentID>
  <ApplicationID>sample string 1</ApplicationID>
  <AreaOfExistingHouse>sample string 22</AreaOfExistingHouse>
  <DateOfCommencement>2026-06-24T22:18:39.6547989+05:30</DateOfCommencement>
  <DistanceFromAirportInKm>sample string 8</DistanceFromAirportInKm>
  <DistanceFromRailwayInKm>sample string 9</DistanceFromRailwayInKm>
  <DoubleRoomCountAndAreaInSqft>sample string 24</DoubleRoomCountAndAreaInSqft>
  <EstablishmentContactNumber>sample string 10</EstablishmentContactNumber>
  <EstablishmentDistrictID>7</EstablishmentDistrictID>
  <EstablishmentEmail>sample string 11</EstablishmentEmail>
  <EstablishmentFullPostalAddress>sample string 6</EstablishmentFullPostalAddress>
  <EstablishmentName>sample string 3</EstablishmentName>
  <EstablishmentWebsite>sample string 12</EstablishmentWebsite>
  <GuestCapacity>sample string 26</GuestCapacity>
  <IPAddress>sample string 30</IPAddress>
  <IsCompleted>true</IsCompleted>
  <IsPublicOrPrivateLimitedCompany>true</IsPublicOrPrivateLimitedCompany>
  <ManagerNameAndEducation>sample string 16</ManagerNameAndEducation>
  <NameOfOwner>sample string 4</NameOfOwner>
  <NoOfBathrooms>sample string 20</NoOfBathrooms>
  <NoOfBeds>sample string 21</NoOfBeds>
  <NoOfEmployeedLocalOrNonlocal>sample string 17</NoOfEmployeedLocalOrNonlocal>
  <OwnershipType>sample string 5</OwnershipType>
  <ProposedPricingStructure>sample string 19</ProposedPricingStructure>
  <SectionID>2</SectionID>
  <SingleRoomCountAndAreaInSqft>sample string 23</SingleRoomCountAndAreaInSqft>
  <StaffNameAndAddress>sample string 18</StaffNameAndAddress>
  <SuiteRoomCountAndAreaInSqft>sample string 25</SuiteRoomCountAndAreaInSqft>
  <TrainedStaffFromRecognizedInstitute>true</TrainedStaffFromRecognizedInstitute>
  <UserID>sample string 28</UserID>
  <WeatherOwnBuildingOrRented>true</WeatherOwnBuildingOrRented>
</HotelEstablishmentPostDTO>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ApiResponseOfString
NameDescriptionTypeAdditional information
Success

boolean

None.

Message

string

None.

Data

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "Message": "sample string 2",
  "Data": "sample string 3"
}

application/xml, text/xml

Sample:
<ApiResponseOfstring xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Tourism.Entities.Models">
  <Data>sample string 3</Data>
  <Message>sample string 2</Message>
  <Success>true</Success>
</ApiResponseOfstring>