Versions Compared

Key

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

...

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 Space ID

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

Status
colourBlue
titleDemo - Get Property ID

...

-

...

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

Please refer Space Fields Page to get Space ID and Property ID.