# Create a new room **POST /api/Rooms** Sample request: POST /rooms { "hotelId": "{hotelId}", "roomNumber": "101", "adultsCapacity": 2, "childrenCapacity": 1, "price": 100, "roomType": "Standard" } ## Servers - http://api.example.com: http://api.example.com () ## Parameters ### Body: application/json (object) The data for the new room - **hotelId** (string(uuid)) Id of the hotel where the room is located - **roomNumber** (integer(int32)) Number of the room in the hotel - **adultsCapacity** (integer(int32)) Adults capacity of the room - **childrenCapacity** (integer(int32)) Children capacity of the room - **roomType** (string) - **price** (number(double)) Current price of the room - **Additional properties are NOT allowed** () ## Responses ### 200 Success #### Body: application/json (object) - **id** (string(uuid)) - **creationDate** (string(date-time)) - **lastModified** (string(date-time)) - **roomNumber** (integer(int32)) - **roomType** (string) - **adultsCapacity** (integer(int32)) - **childrenCapacity** (integer(int32)) - **hotelName** (string | null) - **Additional properties are NOT allowed** () ### 201 Returns the newly created room ### 401 If the user is not authenticated ### 403 If the user is not authorized (not an admin) ### 400 If the request data is invalid [Powered by Bump.sh](https://bump.sh)