POST /v1/rooms

Create a new room

Creates a new room for the specified property and company

Request

POST /v1/rooms

Parameters

[]

Response

{ "201": { "description": "Room created successfully", "content": { "application/json": { "schema": { "type": "object", "properties": { "success": { "type": "boolean" }, "data": { "type": "object", "properties": { "room": { "type": "object", "properties": { "id": { "type": "string" }, "company_id": { "type": "string" }, "property_id": { "type": "string" }, "name": { "type": "string" }, "description": { "type": [ "string", "null" ] }, "room_type": { "type": "string" }, "max_occupancy": { "type": "number" }, "bed_count": { "type": "number" }, "bathroom_count": { "type": "number" }, "size_sqm": { "type": [ "number", "null" ] }, "floor": { "type": [ "number", "null" ] }, "amenities": { "type": "array", "items": { "type": "string" } }, "images": { "type": "array", "items": { "type": "string" } }, "base_price_cents": { "type": "number" }, "status": { "type": "string" }, "created_at": { "type": "string" }, "updated_at": { "type": "string" } }, "required": [ "id", "company_id", "property_id", "name", "description", "room_type", "max_occupancy", "bed_count", "bathroom_count", "size_sqm", "floor", "amenities", "images", "base_price_cents", "status", "created_at", "updated_at" ] } }, "required": [ "room" ] } }, "required": [ "success", "data" ] } } } } }

View in Interactive API Reference