It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Creating page through REST API requires edit+publish for correct format Edited

Hi there,


I'm testing out the REST API to post and create a new page using the storage representation and html content. However when I view the page it hasn't formatted quite a few things. The main issues I see are:

1. The page is full width, even though it should be centred with plenty of padding (Not through HTML settings but the space templates)

2. Code sections aren't formatting correctly.

Both of these issues are 'magically' resolved once I click to edit the page and publish - which makes me think there's some trigger happening for the format. Is there a way to trigger this functionality through the API?


Edit: It seems like the main things that are changing between the content on edit/publish through the UI is the code macros.

0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Confluence

How is your team having fun and bonding, remotely, utilizing Confluence?

Thanks everyone for answering last week’s question. The winner of the random drawing from those who commented is: @LarryBrock I’ll contact you separately with your prize details. This wee...

283 views 9 7
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you