Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Space fields can be updated and fetched via REST API

  • Helps to avoid creating page versions from automated api updates.

  • Provides macros i.e.

    • Space fields

Confluence Cloud Space Properties REST API documentation

https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-space-properties/#api-spaces-space-id-properties-get

Status
colourBlue
titleDemo - Get Property ID

Code Block
curl --request GET \
  --url 'https://{your-domain}/wiki/api/v2/spaces/SPACEKEY/properties?key=ilaesolution-space-properties' \
  --user 'email@example.com:<api_token>' \
  --header 'Accept: application/json'

Status
colourBlue
titleDemo - Add or Update

Code Block
curl --request PUT \
  --url 'https://{your-domain}/wiki/api/v2/spaces/{space-id}/properties/{property-id}' \
  --user 'email@example.com:<api_token>' \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json' \
  --data '{
  "key": {"key1":"value1", "key2":"value2", "key3":"value3"},
  "version": {
    "number": 84
  }
}'