Update Amenity API
Overview
Updates an existing Amenity Master record.
- Endpoint:
/api/hotels/amenities/update - Method:
POST
Request Body Schema
| Field | Type | Required | Description |
|---|---|---|---|
id | String | Yes | Amenity Master ID |
name | String | No | Amenity name |
code | String | No | Amenity code |
category | Enum | No | HOTEL, ROOM, GENERAL |
documentId | UUID String | No | ID of associated Document metadata |
description | String | No | Description |
active | Boolean | No | Active status |
Request Body Example
{
"id": "a1234567-89ab-cdef-0123-456789abcdef",
"name": "Ultra Fast Wi-Fi",
"category": "HOTEL"
}
Response Example (200 OK)
{
"success": true,
"data": {
"id": "a1234567-89ab-cdef-0123-456789abcdef",
"name": "Ultra Fast Wi-Fi",
"code": "WIFI_FREE",
"category": "HOTEL",
"active": true
},
"message": "Amenity Master updated successfully"
}