As far as I understand, the Confluence REST APIs work in a linear fashion. You create a page, and then upload attachment to that page, and then create another page. Is there way to create a page with the attachment data?
Also, is there a way to create multiple pages at once?
Basically you need to have a page ID before you upload an attachment. There are different REST API functions that is why it is working like that.
Here is a nice explanation how this works and on the end you have a example of a script that you can use to create an automation that would fit into your requirements
Hope it helps.
As for creating multiple pages at once.. I would try with importing a Word document with option "Split by heading" that would create pages base on headings levels. That is a quick and easy way to create a page tree structure.
Phew, Atlassian Team 2021 blew by. With dozens of demos and a handful of keynotes, you may have missed some of the awesome Confluence Cloud sessions. Don't' worry, you can watch them all here or on Y...
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