The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 

How to create a new generation pages via REST API?

Nikolai Besschetnov
January 27, 2020

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Answer accepted
Nikolai Besschetnov
January 29, 2020

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!

TAGS
AUG Leaders

Atlassian Community Events