# Create a new hotel **POST /api/Hotels** Sample request: POST /hotels { "name": "Hotel Budapest", "owner": "Hungarian Hotels Ltd.", "street": "King lu, 19 st." "latitude": "15.9", "longitude": "20.5", "cityId": "{cityId}" "starRate" : "4" } ## Servers - http://api.example.com: http://api.example.com () ## Parameters ### Body: application/json (object) The data for the new hotel - **cityId** (string(uuid)) Id of the city where the hotel is located - **name** (string | null) Name of the hotel - **owner** (string | null) Owner of the hotel - **starRate** (integer(int32)) Star Rate of the hotel - **street** (string | null) Street of the hotel - **latitude** (number(double)) Latitude for the hotel - **longitude** (number(double)) Longitude for the hotel - **checkInTime** (string(time)) Check in time for the hotel (default is 14:00) - **checkOutTime** (string(time)) Check out time for the hotel (default is 11:00) - **Additional properties are NOT allowed** () ## Responses ### 200 Success #### Body: application/json (object) - **id** (string(uuid)) - **creationDate** (string(date-time)) - **lastModified** (string(date-time)) - **name** (string | null) - **owner** (string | null) - **starRate** (integer(int32)) - **roomsNumber** (integer(int32)) - **Additional properties are NOT allowed** () ### 201 Returns the newly created hotel ### 400 If the request data is invalid ### 401 If the user is not authenticated ### 403 If the user is not authorized (not an admin) [Powered by Bump.sh](https://bump.sh)