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
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
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.