v1

latestOpenAPI 3.0.32026-07-2632131.4 MB
Spaces

Add space to unit-type (Create Space)

post/properties/spaces/unit-type/{unitTypeId}/add

Path parameters

unitTypeIdstring required

Unit type Id to add room to

Request body

_idstring
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

{
  "_id": "5d6e7a7ebf8e3800207735ae",
  "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
  }
}

Response

Returns the newly added space