Skip to content
atlassian-dc-mcp
Esc
↑↓navigate↵open⌘Jpreview

Create private space

Creates a new private Space, viewable only by its creator. The incoming Space does not include an id, but must include a Key and Name, and should include a Description.

POST/rest/api/space/_private
Request body
requiredapplication/json

The space to be created

idinteger<int64>
keystring
namestring
statusstring
iconReferenceIcon
Show properties
expandedboolean
idPropertiesobject
descriptionobject
homepageReferenceContent
Show properties
expandedboolean
idPropertiesobject
linksobject
typestring
metadataobject
retentionPolicyReferenceSpaceRetentionPolicy
Show properties
expandedboolean
idPropertiesobject
Responses
200

Returns a full JSON representation of a space.

idinteger<int64>
keystring
namestring
statusstring
iconReferenceIcon
Show properties
expandedboolean
idPropertiesobject
descriptionobject
homepageReferenceContent
Show properties
expandedboolean
idPropertiesobject
linksobject
typestring
metadataobject
retentionPolicyReferenceSpaceRetentionPolicy
Show properties
expandedboolean
idPropertiesobject
Try it
Server
Bodyapplication/json
Request
curl -X POST 'http://example.com:7990/confluence/rest/api/space/_private' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "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": {}
  }
}'
Response
{
  "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": {}
  }
}

Was this page helpful?