Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

Andrew Johnson December 22, 2019

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
TAGS
AUG Leaders

Atlassian Community Events