Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,365,068
Community Members
 
Community Events
168
Community Groups

How to create a new generation pages via REST API?

Hello Atlassian Community,

I'm trying to create a new page via REST API endpoints and so far a creation itself was successfully accomplished.

However. The new pages are created as if I used the old blank page, while the storage content is from the new generation pages. It finely ruins the layout and the editor of the page is old. Given admins still can't migrate existing old page to the new editor experience, as the feature is not rolled out yet, is it possible to create programatically a new generation page?

Best regards,

Nikolai

1 answer

1 accepted

0 votes
Answer accepted

May take time for the answer / proper solution, yet if you find yourself in a similar situation, here's a workaround.

  1. Create in any space a new-gen page;
  2. Give it a very distinctive and unique name, one unlikely to find in any other space, e.g., "Everybody loves pineapple pizza";
  3. Via REST API copy the page (https://developer.atlassian.com/cloud/confluence/rest/#api-api-content-id-pagehierarchy-copy-post) and update it. You will have a new-gen publication.

Cheers!

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events