Spaces

Edit space details

patch/properties/spaces/space/{spaceId}/details

Request

  • Base URL
    https://open-api.guesty.com/v1
  • URL
    https://open-api.guesty.com/v1/properties/spaces/space/{spaceId}/details
  • Auth
    API key in header authorization

Path parameters

spaceIdstring required

spaceId to edit

Request body

namestring
type'BEDROOM' | 'SHARED_SPACE' | 'FULL_BATHROOM' | 'HALF_BATHROOM'

Type of space. Note: 'SHARED_SPACE' is shown on channels as 'Living room'.

airbnb_room_idstring

Example request

{
  "airbnb_room_id": "123456"
}

Response

Returns the edited space

unitTypeIdstring
bedroomsAllowedboolean

Example response

{
  "unitTypeId": "5d6e7a7ebf8e3800207735ae",
  "spaces": [
    {
      "unitTypeId": "5d6e7a7ebf8e3800207735ae",
      "accountId": "5d6e7a7ebf8e3800207735ae",
      "name": "Space room",
      "beds": {
        "KING_BED": 1,
        "QUEEN_BED": 1,
        "DOUBLE_BED": 1,
        "SINGLE_BED": 1,
        "SOFA_BED": 1,
        "AIR_MATTRESS": 1,
        "BUNK_BED": 1
      },
      "other": {
        "FLOOR_MATTRESS": 1,
        "WATER_BED": 1,
        "TODDLER_BED": 1,
        "CRIB": 1
      }
    }
  ],
  "bedroomsAllowed": true,
  "bathrooms": {
    "SHARED": 1,
    "PRIVATE": 1
  }
}

Changes

No recorded changes to this operation across all 2 revisions of this API.