---
updatedAt: 2026-04-23T09:30:40.000Z
agentTools:
  projectIndex: https://open-api-docs.guesty.com/llms.txt
---

# Add space to unit-type (Create Space)

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "GUESTY OPEN API",
    "description": "Guesty Open API documentation",
    "version": "1"
  },
  "servers": [
    {
      "url": "https://open-api.guesty.com/v1"
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "tags": [
    {
      "name": "Spaces"
    }
  ],
  "paths": {
    "/properties/spaces/unit-type/{unitTypeId}/add": {
      "post": {
        "tags": [
          "Spaces"
        ],
        "summary": "Add space to unit-type (Create Space)",
        "parameters": [
          {
            "name": "unitTypeId",
            "in": "path",
            "description": "Unit type Id to add room to",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            },
            "example": "5d6e7a7ebf8e3800207735af"
          }
        ],
        "requestBody": {
          "description": "Room object to add",
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "_id": {
                    "type": "string",
                    "example": "5d6e7a7ebf8e3800207735ae"
                  },
                  "name": {
                    "type": "string"
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "BEDROOM",
                      "SHARED_SPACE",
                      "FULL_BATHROOM",
                      "HALF_BATHROOM"
                    ],
                    "description": "Type of space. Note: 'SHARED_SPACE' is shown on channels as 'Living room'."
                  },
                  "airbnb_room_id": {
                    "type": "string"
                  },
                  "beds": {
                    "type": "object",
                    "properties": {
                      "KING_BED": {
                        "minimum": 0,
                        "type": "number",
                        "example": 1,
                        "default": 0
                      },
                      "QUEEN_BED": {
                        "minimum": 0,
                        "type": "number",
                        "example": 1,
                        "default": 0
                      },
                      "DOUBLE_BED": {
                        "minimum": 0,
                        "type": "number",
                        "example": 1,
                        "default": 0
                      },
                      "SINGLE_BED": {
                        "minimum": 0,
                        "type": "number",
                        "example": 1,
                        "default": 0
                      },
                      "SOFA_BED": {
                        "minimum": 0,
                        "type": "number",
                        "example": 1,
                        "default": 0
                      },
                      "AIR_MATTRESS": {
                        "minimum": 0,
                        "type": "number",
                        "example": 1,
                        "default": 0
                      },
                      "BUNK_BED": {
                        "minimum": 0,
                        "type": "number",
                        "example": 1,
                        "default": 0
                      }
                    }
                  },
                  "other": {
                    "type": "object",
                    "properties": {
                      "FLOOR_MATTRESS": {
                        "minimum": 0,
                        "type": "number",
                        "example": 1,
                        "default": 0
                      },
                      "WATER_BED": {
                        "minimum": 0,
                        "type": "number",
                        "example": 1,
                        "default": 0
                      },
                      "TODDLER_BED": {
                        "minimum": 0,
                        "type": "number",
                        "example": 1,
                        "default": 0
                      },
                      "CRIB": {
                        "minimum": 0,
                        "type": "number",
                        "example": 1,
                        "default": 0
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns the newly added space",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "unitTypeId": {
                      "type": "string",
                      "example": "5d6e7a7ebf8e3800207735ae"
                    },
                    "spaces": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "unitTypeId": {
                            "type": "string",
                            "example": "5d6e7a7ebf8e3800207735ae"
                          },
                          "accountId": {
                            "type": "string",
                            "example": "5d6e7a7ebf8e3800207735ae"
                          },
                          "name": {
                            "type": "string",
                            "example": "Space room"
                          },
                          "roomIds": {
                            "type": "object",
                            "properties": {
                              "airbnb": {
                                "type": "string"
                              }
                            }
                          },
                          "beds": {
                            "type": "object",
                            "properties": {
                              "KING_BED": {
                                "minimum": 0,
                                "type": "number",
                                "example": 1,
                                "default": 0
                              },
                              "QUEEN_BED": {
                                "minimum": 0,
                                "type": "number",
                                "example": 1,
                                "default": 0
                              },
                              "DOUBLE_BED": {
                                "minimum": 0,
                                "type": "number",
                                "example": 1,
                                "default": 0
                              },
                              "SINGLE_BED": {
                                "minimum": 0,
                                "type": "number",
                                "example": 1,
                                "default": 0
                              },
                              "SOFA_BED": {
                                "minimum": 0,
                                "type": "number",
                                "example": 1,
                                "default": 0
                              },
                              "AIR_MATTRESS": {
                                "minimum": 0,
                                "type": "number",
                                "example": 1,
                                "default": 0
                              },
                              "BUNK_BED": {
                                "minimum": 0,
                                "type": "number",
                                "example": 1,
                                "default": 0
                              }
                            }
                          },
                          "other": {
                            "type": "object",
                            "properties": {
                              "FLOOR_MATTRESS": {
                                "minimum": 0,
                                "type": "number",
                                "example": 1,
                                "default": 0
                              },
                              "WATER_BED": {
                                "minimum": 0,
                                "type": "number",
                                "example": 1,
                                "default": 0
                              },
                              "TODDLER_BED": {
                                "minimum": 0,
                                "type": "number",
                                "example": 1,
                                "default": 0
                              },
                              "CRIB": {
                                "minimum": 0,
                                "type": "number",
                                "example": 1,
                                "default": 0
                              }
                            }
                          }
                        }
                      }
                    },
                    "bedroomsAllowed": {
                      "type": "boolean",
                      "example": true
                    },
                    "bathrooms": {
                      "type": "object",
                      "properties": {
                        "SHARED": {
                          "type": "number",
                          "example": 1
                        },
                        "PRIVATE": {
                          "type": "number",
                          "example": 1
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "apiKey",
        "name": "authorization",
        "in": "header"
      }
    }
  },
  "x-kong-upstream-prefix": "/integrations/brands",
  "x-kong-route-transformations": [
    {
      "configuration": "v1",
      "routeExtpath": "/account-brands",
      "stripPrefix": "/v1/account-brands"
    }
  ]
}
```