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

Get space property by key

Returns a space property.

Example request URI:

http://example.com/confluence/rest/api/space/TST/property/example-property-key?expand=space,version

GET/rest/api/space/{spaceKey}/property/{key}
Path parameters
spaceKeystringrequired

The key of the space

keystringrequired
Query parameters
expandstring

a comma separated list of properties to expand on the space properties. Default value: <code>version</code>.

limitstring

the limit of the number of items to return, this may be restricted by fixed system limits.

startstring

he start point of the collection to return.

Responses
200

Returns a full JSON representation of the space property.

keystring
valueJsonString
Show properties
valuestring
versionVersion
Show properties
byPerson
Show properties
profilePictureIcon
Show properties
pathstring
widthinteger<int32>
heightinteger<int32>
isDefaultboolean
displayNamestring
typestring
whenstring<date-time>
messagestring
numberinteger<int32>
minorEditboolean
hiddenboolean
syncRevstring
contentReferenceContent
Show properties
expandedboolean
idPropertiesobject
contentRefReferenceContent
Show properties
expandedboolean
idPropertiesobject
spaceSpace
Show properties
idinteger<int64>
keystring
namestring
statusstring
iconReferenceIcon
Show properties
expandedboolean
idPropertiesobject
descriptionobject
homepageReferenceContent
Show properties
expandedboolean
idPropertiesobject
linksobject
typestring
metadataobject
retentionPolicyReferenceSpaceRetentionPolicy
Show properties
expandedboolean
idPropertiesobject
spaceRefReferenceSpace
Show properties
expandedboolean
idPropertiesobject
404

Returned if there is no space with the given key, or no property with the given key, or if the calling user does not have permission to view the space.

statusCodeinteger<int32>
dataValidationResult
Show properties
authorizedboolean
validboolean
errorsobject
successfulboolean
allowedInReadOnlyModeboolean
messagestring
reasonstring
Try it
Server
Parameters
Request
curl -X GET 'http://example.com:7990/confluence/rest/api/space/string/property/string' \
  -H 'Accept: application/json'
Response
{
  "key": "string",
  "value": {
    "value": "string"
  },
  "version": {
    "by": {
      "profilePicture": {
        "path": "http://www.example.com/path/to/image.png",
        "width": 16,
        "height": 16,
        "isDefault": true
      },
      "displayName": "Joe Smith",
      "type": "string"
    },
    "when": "2020-01-01T00:00:00Z",
    "message": "A message",
    "number": 1,
    "minorEdit": true,
    "hidden": true,
    "syncRev": "123456",
    "content": {
      "expanded": true,
      "idProperties": {}
    },
    "contentRef": {
      "expanded": true,
      "idProperties": {}
    }
  },
  "space": {
    "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": {}
    }
  },
  "spaceRef": {
    "expanded": true,
    "idProperties": {}
  }
}

Was this page helpful?