Versions Compared

Key

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

...

Status
colourBlue
titleDemo - Get Space ID

Code Block
breakoutModewide
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

Code Block
breakoutModewide
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'

Status
colourBlue
titleDemo - Add or Update

Code Block
breakoutModewide
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": "--testing--",
  "version": {
    "number": 10
  }
}'

...