Skip to main content

Update Hotel Master API

Overview

Updates an existing Hotel Master entity by its unique ID.

  • Endpoint: /api/hotels/update
  • Method: POST

Request Body Schema

FieldTypeRequiredDescription
idString (UUID)YesHotel Master ID to update
nameStringNoUpdated hotel name
starRatingEnumNoUpdated star rating
phoneStringNoUpdated contact phone
emailStringNoUpdated contact email
activeBooleanNoActive status flag

Request Body Example

{
"id": "7a8b9c1d-2e3f-4a5b-6c7d-8e9f0a1b2c3d",
"name": "Grand Palace Resort & Premium Spa",
"phone": "+919876543211"
}

Response Example (200 OK)

{
"success": true,
"data": {
"id": "7a8b9c1d-2e3f-4a5b-6c7d-8e9f0a1b2c3d",
"name": "Grand Palace Resort & Premium Spa",
"phone": "+919876543211"
},
"message": "Hotel Master updated successfully"
}