Create space


POST /v4/sites/{siteId}/spaces
Parameters
siteId
uuid required
-
sourceSpaceId
uuid

The id of the space which to be copied to create a new space.

Request #1
Headers
Content-Type application/json
Accept application/json
Authorization Bearer `Your Access Token`
{
    "id": "542973be-b05b-4c8d-8e20-a4297e5dbbda",
    "floorId": "8f5f37ab-3c1c-44e0-9a7a-392bcbef89cc",
    "name": "Office Room",
    "template": "Office Room template"
}
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "floorId": {
      "type": "string"
    },
    "template": {
      "type": "string"
    }
  },
  "required": [
    "name",
    "floorId"
  ]
}

Response 201

Headers
Content-Type application/json
{
    "id": "542973be-b05b-4c8d-8e20-a4297e5dbbda",
    "name": "Office Room",
    "floorId": "8f5f37ab-3c1c-44e0-9a7a-392bcbef89cc",
    "template": "Office Room template"
}
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "floorId": {
      "type": "string"
    }
  },
  "allOf": [
    {
      "oneOf": [
        {
          "properties": {
            "template": {
              "type": "string"
            }
          }
        },
        {
          "properties": {
            "linkedSpaceId": {
              "type": "string"
            }
          }
        }
      ]
    }
  ]
}