Update Hotel Master API
Overview
Updates an existing Hotel Master entity by its unique ID.
- Endpoint:
/api/hotels/update - Method:
POST
Request Body Schema
| Field | Type | Required | Description |
|---|---|---|---|
id | String (UUID) | Yes | Hotel Master ID to update |
name | String | No | Updated hotel name |
starRating | Enum | No | Updated star rating |
phone | String | No | Updated contact phone |
email | String | No | Updated contact email |
active | Boolean | No | Active 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"
}