---
updatedAt: 2026-04-24T16:38:27.000Z
agentTools:
  projectIndex: https://developers.cloudbeds.com/llms.txt
---

# postRoomAssign

Assign/Reassign a room on a guest reservation

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Cloudbeds API",
    "description": "<p>\n    Welcome to the documentation for <strong>Cloudbeds API Version v1.3</strong>!\n    If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data\n    for your Cloudbeds customers, then you've come to the right place.\n</p>\n\n<p>\n    In this document you will find all the API methods we provide along with explanations for parameters and response\n    examples.\n</p>\n\n<p>\n    If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our\n    <a href=\"https://integrations.cloudbeds.com/hc/en-us\">Integrations Portal</a>.\n</p>\n\n<p>\n    Be sure to <a href=\"https://go.pardot.com/l/308041/2018-07-24/qb2lg\">subscribe</a> to the monthly\n    Cloudbeds API announcement mailing list to receive information on new additions and improvements to the\n    Cloudbeds API and related developer tools.\n</p>\n\n<p>\n    <strong>Endpoint:</strong> https://api.cloudbeds.com/api/v1.3/{method}\n</p>\n\n<p>\n    <strong>HTTPS:</strong> Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.\n</p>\n\n<p>\n    <strong>Request Format:</strong> HTTP GET, POST and PUT (Content-Type: application/x-www-form-urlencoded)\n</p>\n\n<p>\n    <strong>Response Format:</strong> JSON\n</p>\n\n<p>\n    <strong>Response Header:</strong> X-Request-ID is added to response headers in all calls to help accelerate support\n    and troubleshooting.\n</p>\n\n<p>\n    <strong>\n        <a href=\"https://integrations.cloudbeds.com/hc/en-us/articles/14104678058267-API-Documentation#postman-collection\">\n            <img src=\"https://run.pstmn.io/button.svg\" alt=\"Run in Postman\">\n        </a>\n    </strong> use this link to access our Public collection in Postman.\n</p>",
    "version": "v1.3"
  },
  "servers": [
    {
      "url": "https://api.cloudbeds.com/api/v1.3/"
    }
  ],
  "components": {
    "securitySchemes": {
      "api_key": {
        "type": "apiKey",
        "name": "x-api-key",
        "in": "header"
      },
      "OAuth2": {
        "type": "oauth2",
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "",
            "tokenUrl": "",
            "scopes": {
              "delete:adjustment": "delete:adjustment",
              "delete:appPropertySettings": "delete:appPropertySettings",
              "delete:roomblock": "delete:roomblock",
              "read:allotmentBlock": "read:allotmentBlock",
              "read:appPropertySettings": "read:appPropertySettings",
              "read:communication": "read:communication",
              "read:currency": "read:currency",
              "read:customFields": "read:customFields",
              "read:dashboard": "read:dashboard",
              "read:group": "read:group",
              "read:guest": "read:guest",
              "read:hotel": "read:hotel",
              "read:houseAccount": "read:houseAccount",
              "read:housekeeping": "read:housekeeping",
              "read:item": "read:item",
              "read:package": "read:package",
              "read:payment": "read:payment",
              "read:rate": "read:rate",
              "read:reservation": "read:reservation",
              "read:room": "read:room",
              "read:roomblock": "read:roomblock",
              "read:taxesAndFees": "read:taxesAndFees",
              "read:user": "read:user",
              "write:adjustment": "write:adjustment",
              "write:allotmentBlock": "write:allotmentBlock",
              "write:appError": "write:appError",
              "write:appPropertySettings": "write:appPropertySettings",
              "write:communication": "write:communication",
              "write:customFields": "write:customFields",
              "write:group": "write:group",
              "write:guest": "write:guest",
              "write:hotel": "write:hotel",
              "write:houseAccount": "write:houseAccount",
              "write:housekeeping": "write:housekeeping",
              "write:item": "write:item",
              "write:payment": "write:payment",
              "write:rate": "write:rate",
              "write:reservation": "write:reservation",
              "write:room": "write:room",
              "write:roomblock": "write:roomblock"
            }
          }
        }
      }
    },
    "schemas": {
      "PostRoomAssignRequest": {
        "type": "object",
        "properties": {
          "propertyID": {
            "description": "Property ID",
            "type": "string",
            "nullable": true
          },
          "reservationID": {
            "description": "Reservation identifier",
            "type": "string"
          },
          "subReservationID": {
            "description": "Sub Reservation identifier",
            "type": "string",
            "nullable": true
          },
          "reservationRoomID": {
            "description": "Reservation room ID. Must be set if you want to unassign a room.",
            "type": "string",
            "nullable": true
          },
          "newRoomID": {
            "description": "Room ID of the room that will be assigned. Empty field must be sent if you want to unassign a room.",
            "type": "string"
          },
          "roomTypeID": {
            "description": "Room Type ID of the room that will be assigned. Need to be provided in case of assignment.",
            "type": "string",
            "nullable": true
          },
          "oldRoomID": {
            "description": "Room ID of the room that was assigned. Need to be provided in case of reassignment.",
            "type": "string",
            "nullable": true
          },
          "overrideRates": {
            "description": "Deprecated. Please use adjustPrice instead. Setting overrideRates=true will have the opposite of the effect that the name implies. It will cause the rates to NOT be overridden, but instead to be recalculated based on the new room assignment.",
            "type": "boolean",
            "nullable": true,
            "default": false
          },
          "adjustPrice": {
            "description": "If room assignment would result in an upcharge or discount, this parameter needs to be set to true to approve the charges. If not set, the rate will retain its original value.",
            "type": "boolean",
            "nullable": true,
            "default": false
          }
        }
      },
      "PostRoomAssignResponse": {
        "type": "object",
        "properties": {
          "success": {
            "description": "Returns if the request could be completed",
            "type": "boolean"
          },
          "message": {
            "description": "To be used in case any error occurs (if success = false). If success = true, it does not exist.",
            "type": "string",
            "nullable": true
          }
        }
      }
    }
  },
  "paths": {
    "/postRoomAssign": {
      "post": {
        "tags": [
          "Room"
        ],
        "summary": "postRoomAssign",
        "description": "Assign/Reassign a room on a guest reservation",
        "responses": {
          "200": {
            "description": "200 Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostRoomAssignResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "api_key": [
              "write:room"
            ]
          },
          {
            "OAuth2": [
              "write:room"
            ]
          }
        ],
        "requestBody": {
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/PostRoomAssignRequest"
              }
            }
          }
        }
      }
    }
  }
}
```