DELETE /v1/rooms/{id}
Delete room
Deletes a room and all associated data (prices, availability, reservations will be handled by CASCADE)
Request
DELETE /v1/rooms/{id}
Parameters
[
{
"schema": {
"type": "string"
},
"required": true,
"name": "id",
"in": "path"
}
]
Response
{
"200": {
"description": "Room deleted successfully",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"success": {
"type": "boolean"
},
"message": {
"type": "string"
}
},
"required": [
"success",
"message"
]
}
}
}
},
"404": {
"description": "Room not found"
},
"409": {
"description": "Cannot delete room with active reservations"
}
}
View in Interactive API Reference