/
Space Fields Cloud App

Space Fields Cloud App

Simple app to manage space properties and centralize the space related common metadata, variables, strings, tokens in fields for reuse, tracking and automation. These fields can be accessed or shared among many confluence pages via macro "Space fields".

Features:

  • Space fields can be updated and fetched via REST API

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

  • Provides option to show all space properties

  • Provides macros i.e.

    • Space fields

Quick Start Steps!

Step-1

Go to Space > Apps > Space Fields.

Step-2

Go to any page → Click edit → Add macro space fields.

https://youtu.be/jJFWwG4KF_k

 

Confluence Cloud Space Properties REST API documentation.

Please note. For updates through REST API, Property name must starts with prefix spacefield-

e.g. spacefield-Customer Name

Demo - Get Space ID

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

Demo - Get Property ID

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

Demo - Add or Update

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": "spacefield-{Property Name}", "value": "--testing--", "version": { "number": 10 } }'

Make sure to increase version number.

 

DEBUG

Go to Browser Developer Tools > Console log

 

Related content

Space Fields Data Center App
Space Fields Data Center App
More like this
Page Fields for Confluence
Page Fields for Confluence
More like this
Space Fields REST API
Space Fields REST API
More like this
Page Fields REST API
Page Fields REST API
More like this
Update Page Fields
Update Page Fields
More like this
Amazon S3 Files for Confluence
Amazon S3 Files for Confluence
More like this