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

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

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
Community showcase
Published in Jira

Admins, notify your Jira instance of system-wide changes with the new admin announcement banner

Hi All! We’re excited to share the launch of an announcement banner that lets Jira site administrators communicate directly to their users across their  Jira Cloud instance.  ...

536 views 15 18
Read article

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