---
ai:
  exclude: true
search:
  tags:
    - Space
    - POST
seo:
  description: >-
    Creates a new Space. The incoming Space does not include an id, but must…
    Reference for the POST /rest/api/space endpoint in the Confluence Data
    Center API.
sidebar:
  label: Creates a new Space.
  badge: POST
title: Creates a new Space.
type: openapi-operation
---
Creates a new Space. The incoming Space does not include an id, but must include a Key and Name, and should include a Description.

`POST /rest/api/space`

**Request body** (`application/json`, required)

The space to be created

- `id` (integer<int64>)
- `key` (string)
- `name` (string)
- `status` (string)
- `icon` (ReferenceIcon)
- `description` (object)
- `homepage` (ReferenceContent)
- `links` (object)
- `type` (string)
- `metadata` (object)
- `retentionPolicy` (ReferenceSpaceRetentionPolicy)

Request body example:

```json
{
  "id": 123456,
  "key": "TEST",
  "name": "Test Space",
  "status": "current",
  "icon": {
    "expanded": true,
    "idProperties": {}
  },
  "description": {},
  "homepage": {
    "expanded": true,
    "idProperties": {}
  },
  "links": {},
  "type": "global",
  "metadata": {
    "labels": [
      "label1",
      "label2"
    ]
  },
  "retentionPolicy": {
    "expanded": true,
    "idProperties": {}
  }
}
```

**Responses**

- `200` — Returns a full JSON representation of a space.

Response example, 200:

```json
{
  "id": 123456,
  "key": "TEST",
  "name": "Test Space",
  "status": "current",
  "icon": {
    "expanded": true,
    "idProperties": {}
  },
  "description": {},
  "homepage": {
    "expanded": true,
    "idProperties": {}
  },
  "links": {},
  "type": "global",
  "metadata": {
    "labels": [
      "label1",
      "label2"
    ]
  },
  "retentionPolicy": {
    "expanded": true,
    "idProperties": {}
  }
}
```
