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.

...

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

...

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": "ilaesolution-space-properties",
  "value": {"key1":"value1", "key2":"value2", "key3":"value3"},
 "--testing--",
  "version": {
    "number": 10
  }
}'

...

Make sure to increase version number.

...