v1

latestOpenAPI 3.0.02026-07-26866217.8 KB
Room Type

Create RoomType

Create a new room type under the current operator. A room type is a group of interchangeable properties (rooms) sold as a single inventory pool. Optionally link existing properties at creation time via property_ids — each linked property must not already belong to another room type. Subject to the room type quantity limit of the operator's subscription (capped by the property quantity limit) and not available on Basic editions.

post/room_types

Request body

titlestring required

Title of the new room type. Must be unique within the operator.

property_idsinteger[]

Optional list of property ids to link to the new room type. Each property must belong to the operator and must not already be linked to another room type.

Response

The room type has been successfully created.

request_idstring required

Unique identifier for the request.

error_codeinteger required

Numeric error code representing the status of the response. A value of 200 indicates success. <br> See the Error Codes section for more information.

error_msgstring required

Message detailing the status of the response.

Example response

{
  "error_msg": "Done."
}