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

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

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!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events