I got a script output that needs to be uploaded on a page in my confluence space, once in a day. But every time it deletes the previous data. Is it possible to add insted of update.
I have a powershell script. It returns a list of users and details from a specifig group. The script is running once in a day and the result can be zero or multiple lines. When script result is not null it calls a function. This function invoke a API call. In this API I can update my page but every update I lost my old data. I need to add lines and keep existing data.
you ARE using the AtlassianAPI, aren't you? you would have to call append_page() or prepend_page() to insert new content after/before the existing one.
If you are directly using post() you'll have to first extract the existing body, then concatenate old body and your new addition before you can post the complete content.
AltlassianConfluenceAPI really makes it much easier.