Confluence REST API expanded Body Storage structure Q - multiple value sections possible?

Nick January 20, 2019

Hi Confluence Page/API gurus,

I have succeeded in querying the REST API to pull out the full body content of a single record/page via:

https://<domain>/rest/api/content/12345?expand=body.storage

my challenge is that:

1) the entire record/page content is stuck in single body.storage.value field vs separate values based on page headings/sections etc

2) our page content is typically several screens worth of long form text/tables etc


Q. Is it possible to edit the underlying page template structure to create another "value" section(s) to put content in (eg value2, value3 ) that can then be queried via API when body.storage is expanded you would see value (blob of data), value2 (another blob of data), value3 (blob) etc etc?

thanks in advance!

Nick

1 answer

1 accepted

1 vote
Answer accepted
Tobias Anstett _K15t_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 20, 2019

Hi @Nick,

The short answer is NO you can't.

I am not sure if there is a long answer at all... this is just the way Confluence stores the information. The API is already very powerful, e.g. storage is just one of the available viewing options, however all of them return a single value.

Best, Tobias

Nick January 22, 2019

Thanks for the response and confirming that is the expected behaviour Tobias 

regards

Nick

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events