How to update Contents in Confluence via REST API
here are some options about how to use Confluence REST API to operate on pages/blogs/comments/etc., but there are some peculiarities of how to use it in some non-standard cases. The Confluence SERVER REST API link is https://docs.atlassian.com/ConfluenceServer/rest/7.16.2/ , and CLOUD REST API - https://developer.atlassian.com/cloud/confluence/rest/ . They are almost the same in simple operations like page creation or update, but differ a lot in its use for complex cases. So, our task is to update the branch of pages in TEST Confluence space, to find and replace Patch008 text to Patch009 . Yes, illogical operation, but anyway it is to give the example :) We need to: Get descendant pages of the root one Get bodies of those pages Find and replace the text in page bodies As we know the ID of the root page (let it be 12345 ) we can use REST API to to get descendant pages. We will use Groovy language, but the process is pretty the same for other too...