---
updatedAt: 2026-09-28T09:40:34.000Z
agentTools:
  projectIndex: https://developers.cloudbeds.com/llms.txt
---

# Get rooms a reservation can be reassigned to

Returns the reservation's current room assignment, the property's room types, and the rates and rooms available for a room type: the reservation's current type when roomTypeId is omitted, or the requested type when it is provided.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Cloudbeds API v2",
    "description": "<p>Welcome to the documentation for <strong>Cloudbeds API Version v2</strong>! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.</p><p>In this document you will find all the API methods we provide along with explanations for parameters and response examples.</p><p>If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our <a href='https://integrations.cloudbeds.com/hc/en-us'>Integrations Portal</a>.</p><p>Be sure to <a href='https://go.pardot.com/l/308041/2018-07-24/qb2lg'>subscribe</a> to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.</p><p><strong>Endpoint:</strong> https://api.cloudbeds.com/{method}</p><p><strong>HTTPS:</strong> Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.</p><p><strong>Request Format:</strong> HTTP GET, POST, PUT, PATCH and DELETE; request bodies are JSON (Content-Type: application/json)</p><p><strong>Response Format:</strong> JSON</p><p><strong>Response Header:</strong> X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.</p><p><strong><a href='https://integrations.cloudbeds.com/hc/en-us/articles/14104678058267-API-Documentation#postman-collection'><img src='https://run.pstmn.io/button.svg' alt='Run in Postman'></a></strong> use this link to access our Public collection in Postman.</p>",
    "version": "v2"
  },
  "servers": [
    {
      "url": "https://api.cloudbeds.com/",
      "description": "Cloudbeds API v2"
    }
  ],
  "paths": {
    "/booking-room/v1/{bookingRoomId}/assignable-rooms": {
      "get": {
        "tags": [
          "booking-room"
        ],
        "summary": "Get rooms a reservation can be reassigned to",
        "description": "Returns the reservation's current room assignment, the property's room types, and the rates and rooms available for a room type: the reservation's current type when roomTypeId is omitted, or the requested type when it is provided.",
        "operationId": "AssignableRoomsController::getAssignableRooms",
        "parameters": [
          {
            "name": "x-property-id",
            "in": "header",
            "description": "A numeric, comma-separated string representing the property IDs, sent in the header.",
            "required": true,
            "schema": {
              "type": "string",
              "example": "1,2,3"
            }
          },
          {
            "name": "bookingRoomId",
            "in": "path",
            "description": "The reservation's current room assignment.",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^\\d+$",
              "example": "713"
            }
          },
          {
            "name": "roomTypeId",
            "in": "query",
            "description": "Scopes rates and rooms to this room type. Omit to use the reservation's current type.",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^\\d+$",
              "example": "713"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Assignable rooms and supporting data",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/AssignableRoomsResponseSchema"
                    },
                    {
                      "$ref": "#/components/schemas/LegacyAssignableRoomsResponseSchema"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Malformed request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestResponseSchema"
                }
              }
            }
          },
          "403": {
            "description": "No permission for the property",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenResponseSchema"
                }
              }
            }
          },
          "404": {
            "description": "Booking room not found / out of scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundResponseSchema"
                }
              }
            }
          },
          "422": {
            "description": "Invalid room type for property, or reservation not reassignable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationErrorResponseSchema"
                }
              }
            }
          },
          "500": {
            "description": "Server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerErrorResponseSchema"
                }
              }
            }
          }
        },
        "security": [
          {
            "default": [
              "read:reservation"
            ]
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "AssignableRoomSchema": {
        "required": [
          "roomId",
          "name",
          "housekeepingStatus"
        ],
        "properties": {
          "roomId": {
            "description": "Composite room id \"{roomTypeId}-{roomNumber}\" used by the reassign action.",
            "type": "string",
            "example": "713-2"
          },
          "name": {
            "type": "string",
            "example": "Room 201"
          },
          "housekeepingStatus": {
            "description": "Housekeeping status key.",
            "type": "string",
            "enum": [
              "clean",
              "dirty",
              "inspected"
            ],
            "example": "clean"
          }
        },
        "type": "object"
      },
      "AssignableRoomsResponseSchema": {
        "required": [
          "reservation",
          "roomTypes",
          "selectedRoomTypeId",
          "rates",
          "rooms"
        ],
        "properties": {
          "reservation": {
            "$ref": "#/components/schemas/ReservationContextSchema"
          },
          "roomTypes": {
            "description": "Selectable room types (names only, no pricing).",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RoomTypeOptionSchema"
            }
          },
          "selectedRoomTypeId": {
            "description": "The room type the rates and rooms below are scoped to.",
            "type": "string",
            "example": "713"
          },
          "rates": {
            "description": "Rate plans for the selected room type, totalled over the stay.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RatePlanSchema"
            }
          },
          "rooms": {
            "description": "Rooms of the selected type free for the whole stay. Includes the reservation's currently-assigned room when the selected type matches its current type (match on reservation.currentRoomId), so the drawer can render it as selected.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AssignableRoomSchema"
            }
          }
        },
        "type": "object"
      },
      "LegacyAssignableRoomsResponseSchema": {
        "description": "An earlier, narrower shape of this response. See AssignableRoomsResponseSchema for the\ncurrent shape.",
        "required": [
          "reservation",
          "roomTypes",
          "selectedRoomTypeId",
          "rates",
          "rooms"
        ],
        "properties": {
          "reservation": {
            "$ref": "#/components/schemas/LegacyReservationContextSchema"
          },
          "roomTypes": {
            "description": "Selectable room types (names only, no pricing).",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LegacyRoomTypeOptionSchema"
            }
          },
          "selectedRoomTypeId": {
            "description": "The room type the rates and rooms below are scoped to.",
            "type": "integer",
            "example": 713
          },
          "rates": {
            "description": "Rate plans for the selected room type, totalled over the stay.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LegacyRatePlanSchema"
            }
          },
          "rooms": {
            "description": "Rooms of the selected type free for the whole stay. Includes the reservation's currently-assigned room when the selected type matches its current type (match on reservation.currentRoomId), so the drawer can render it as selected.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AssignableRoomSchema"
            }
          }
        },
        "type": "object"
      },
      "LegacyRatePlanSchema": {
        "description": "An earlier, narrower assignable-rooms rate-plan shape: rateId is an integer, rateTotal is a\nraw float, and detailedRates is not present. See RatePlanSchema for the current shape.",
        "required": [
          "rateId",
          "rateType",
          "name",
          "rateTotal"
        ],
        "properties": {
          "rateId": {
            "type": "integer",
            "example": 4521
          },
          "rateType": {
            "description": "Rate plan type.",
            "type": "string",
            "enum": [
              "standard",
              "derived",
              "package",
              "allotment"
            ],
            "example": "standard"
          },
          "name": {
            "type": "string",
            "example": "Deluxe King Room"
          },
          "rateTotal": {
            "description": "Total for the stay (sum of nightly rates).",
            "type": "number",
            "format": "float",
            "example": 320
          },
          "packageId": {
            "type": "integer",
            "example": null,
            "nullable": true
          },
          "packageName": {
            "type": "string",
            "example": null,
            "nullable": true
          }
        },
        "type": "object"
      },
      "LegacyReservationContextSchema": {
        "description": "An earlier, narrower assignable-rooms reservation-context shape: ids are integers,\noriginalRateTotal is a raw float, and none of the save-context fields are present. See\nReservationContextSchema for the current shape.",
        "required": [
          "bookingRoomId",
          "checkinDate",
          "checkoutDate",
          "currentRoomTypeId",
          "currentRateId",
          "originalRateTotal"
        ],
        "properties": {
          "bookingRoomId": {
            "type": "integer",
            "example": 123456
          },
          "checkinDate": {
            "type": "string",
            "format": "date",
            "example": "2026-04-04"
          },
          "checkoutDate": {
            "type": "string",
            "format": "date",
            "example": "2026-04-06"
          },
          "currentRoomTypeId": {
            "type": "integer",
            "example": 713
          },
          "currentRoomId": {
            "description": "Composite room id \"{roomTypeId}-{roomNumber}\", or null when no room is assigned.",
            "type": "string",
            "example": "713-2",
            "nullable": true
          },
          "currentRateId": {
            "type": "integer",
            "example": 4521
          },
          "originalRateTotal": {
            "description": "Total for the stay under the current rate.",
            "type": "number",
            "format": "float",
            "example": 320
          },
          "allotmentBlockCode": {
            "description": "Allotment block code the reservation belongs to, if any.",
            "type": "string",
            "nullable": true
          }
        },
        "type": "object"
      },
      "LegacyRoomTypeOptionSchema": {
        "description": "An earlier, narrower assignable-rooms room-type-option shape: id is an integer. See\nRoomTypeOptionSchema for the current shape.",
        "required": [
          "id",
          "name"
        ],
        "properties": {
          "id": {
            "type": "integer",
            "example": 713
          },
          "name": {
            "type": "string",
            "example": "Deluxe King Room"
          }
        },
        "type": "object"
      },
      "NightlyRateSchema": {
        "required": [
          "date",
          "rate",
          "adults",
          "kids"
        ],
        "properties": {
          "date": {
            "type": "string",
            "format": "date",
            "example": "2026-04-04"
          },
          "rate": {
            "$ref": "#/components/schemas/MoneySchema"
          },
          "adults": {
            "$ref": "#/components/schemas/MoneySchema"
          },
          "kids": {
            "$ref": "#/components/schemas/MoneySchema"
          }
        },
        "type": "object"
      },
      "RatePlanSchema": {
        "required": [
          "rateId",
          "rateType",
          "name",
          "rateTotal",
          "detailedRates"
        ],
        "properties": {
          "rateId": {
            "type": "string",
            "example": "4521"
          },
          "rateType": {
            "description": "Rate plan type.",
            "type": "string",
            "enum": [
              "standard",
              "derived",
              "package",
              "allotment"
            ],
            "example": "standard"
          },
          "name": {
            "type": "string",
            "example": "Deluxe King Room"
          },
          "rateTotal": {
            "$ref": "#/components/schemas/MoneySchema"
          },
          "packageId": {
            "type": "string",
            "example": null,
            "nullable": true
          },
          "packageName": {
            "type": "string",
            "example": null,
            "nullable": true
          },
          "detailedRates": {
            "description": "Per-night rates for the stay under this plan.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NightlyRateSchema"
            }
          }
        },
        "type": "object"
      },
      "ReservationContextSchema": {
        "required": [
          "bookingRoomId",
          "checkinDate",
          "checkoutDate",
          "currentRoomTypeId",
          "currentRateId",
          "originalRateTotal",
          "adults",
          "children",
          "confirmationNumber",
          "roomGroup",
          "guestName",
          "currentPackageId",
          "detailedRates"
        ],
        "properties": {
          "bookingRoomId": {
            "type": "string",
            "example": "123456"
          },
          "checkinDate": {
            "type": "string",
            "format": "date",
            "example": "2026-04-04"
          },
          "checkoutDate": {
            "type": "string",
            "format": "date",
            "example": "2026-04-06"
          },
          "currentRoomTypeId": {
            "type": "string",
            "example": "713"
          },
          "currentRoomId": {
            "description": "Composite room id \"{roomTypeId}-{roomNumber}\", or null when no room is assigned.",
            "type": "string",
            "example": "713-2",
            "nullable": true
          },
          "currentRateId": {
            "type": "string",
            "example": "4521"
          },
          "originalRateTotal": {
            "$ref": "#/components/schemas/MoneySchema"
          },
          "allotmentBlockCode": {
            "description": "Allotment block code the reservation belongs to, if any.",
            "type": "string",
            "nullable": true
          },
          "adults": {
            "description": "Adults on the current assignment.",
            "type": "integer",
            "example": 2
          },
          "children": {
            "description": "Children on the current assignment.",
            "type": "integer",
            "example": 0
          },
          "confirmationNumber": {
            "description": "Confirmation number for this specific room within the reservation.",
            "type": "string",
            "example": "1234567-1"
          },
          "roomGroup": {
            "description": "Group key shared by the rooms that were booked together in this reservation.",
            "type": "string",
            "example": "1"
          },
          "guestName": {
            "description": "Guest full name for the current assignment; empty when unset.",
            "type": "string",
            "example": "Jane Doe"
          },
          "currentPackageId": {
            "description": "Package id of the current rate, or null when the current rate has no package.",
            "type": "string",
            "example": null,
            "nullable": true
          },
          "detailedRates": {
            "description": "Current assignment's per-night rates (for \"preserve original price\" saves).",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NightlyRateSchema"
            }
          }
        },
        "type": "object"
      },
      "RoomTypeOptionSchema": {
        "required": [
          "id",
          "name"
        ],
        "properties": {
          "id": {
            "type": "string",
            "example": "713"
          },
          "name": {
            "type": "string",
            "example": "Deluxe King Room"
          }
        },
        "type": "object"
      },
      "ValidationErrorFieldSchema": {
        "required": [
          "field",
          "message"
        ],
        "properties": {
          "field": {
            "type": "string",
            "example": "roomTypeId"
          },
          "message": {
            "type": "string",
            "example": "Room type 999 is not valid for this property."
          }
        },
        "type": "object"
      },
      "ValidationErrorResponseSchema": {
        "required": [
          "message",
          "code"
        ],
        "properties": {
          "message": {
            "type": "string",
            "example": "Room type 999 is not valid for this property."
          },
          "code": {
            "description": "Machine-readable error code.",
            "type": "string",
            "enum": [
              "INVALID_ROOM_TYPE",
              "RESERVATION_NOT_REASSIGNABLE"
            ],
            "example": "INVALID_ROOM_TYPE"
          },
          "errors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ValidationErrorFieldSchema"
            }
          }
        },
        "type": "object"
      },
      "BadRequestErrorItemSchema": {
        "required": [
          "field",
          "message"
        ],
        "properties": {
          "field": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "code": {
            "description": "Error code identifying the specific validation failure",
            "type": "string",
            "example": "GROUP_CUSTOM_RATE_NOT_ALLOWED",
            "nullable": true
          },
          "details": {
            "description": "Additional details about the validation failure",
            "type": "object",
            "nullable": true
          }
        },
        "type": "object"
      },
      "BadRequestErrorListSchema": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/BadRequestErrorItemSchema"
        }
      },
      "BadRequestResponseSchema": {
        "required": [
          "message"
        ],
        "properties": {
          "message": {
            "type": "string"
          },
          "errors": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/BadRequestErrorListSchema"
              }
            ],
            "nullable": true,
            "description": "The list of errors"
          },
          "code": {
            "description": "Error code identifying the type of error",
            "type": "string",
            "example": "INVALID_REQUEST",
            "nullable": true
          }
        },
        "type": "object"
      },
      "ForbiddenResponseSchema": {
        "properties": {
          "message": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "InternalServerErrorResponseSchema": {
        "required": [
          "message"
        ],
        "properties": {
          "message": {
            "type": "string"
          },
          "code": {
            "description": "Error code identifying the type of error",
            "type": "string",
            "example": "PAYMENT_VOID_FAILED",
            "nullable": true
          }
        },
        "type": "object"
      },
      "MoneySchema": {
        "description": "Money representation with amount in smallest currency unit and ISO 4217 currency code",
        "required": [
          "amount",
          "currencyCode"
        ],
        "properties": {
          "amount": {
            "description": "Amount in the smallest representable units of the currency (e.g., cents for USD). For example, USD $124.39 would be \"12439\".",
            "type": "string",
            "example": "12439"
          },
          "currencyCode": {
            "description": "ISO 4217 currency code",
            "type": "string",
            "example": "USD"
          }
        },
        "type": "object"
      },
      "NotFoundResponseSchema": {
        "properties": {
          "message": {
            "type": "string"
          },
          "code": {
            "description": "Error code identifying the type of error",
            "type": "string",
            "example": "RESOURCE_NOT_FOUND",
            "nullable": true
          }
        },
        "type": "object"
      }
    },
    "securitySchemes": {
      "default": {
        "type": "oauth2",
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "https://api.cloudbeds.com/auth/oauth/authorize",
            "tokenUrl": "https://api.cloudbeds.com/auth/oauth/token",
            "scopes": {
              "read:addon": "Read Addon information",
              "read:doorLockKey": "Read DoorLock keys and settings",
              "write:doorLockKey": "Write DoorLock keys and settings",
              "delete:doorLockKey": "Delete DoorLock keys and settings",
              "read:housekeeping": "Read Housekeeping inspections",
              "read:marketsegment": "Read Market Segmentation groups and segments",
              "write:marketsegment": "Write Market Segmentation groups and segments",
              "delete:marketsegment": "Delete Market Segmentation groups and segments",
              "write:importTask": "Create new data imports",
              "read:importTask": "Read data imports",
              "hotel:read": "Read Hotel information",
              "hotel:write": "Write Hotel information",
              "hotel:delete": "Delete Hotel information",
              "write:appError": "Write AppError information",
              "read:agePolicy": "Read Age Policy information",
              "write:agePolicy": "Write Age Policy information",
              "delete:agePolicy": "Delete Age Policy information",
              "write:allotmentBlocks": "Write AllotmentBlock information",
              "read:allotmentBlocks": "Read AllotmentBlock information",
              "delete:allotmentBlocks": "Delete AllotmentBlock information"
            }
          }
        }
      }
    }
  },
  "tags": [
    {
      "name": "booking-room",
      "description": "booking-room"
    }
  ]
}
```