Altering Confluence Content through APi

Working to utilize Bot accounts to replace strings within text fields we deem a ‘security threat’ (such as pw’s and tokens) with null strings. Unsure of Confluence api calls one can utilize to accomplish this or if other have found a way to do so already.

Found a workable solution in https://community.atlassian.com/t5/Confluence-questions/How-to-update-a-page-with-Python-using-REST-API/qaq-p/480627

Will post an updated version of this in a simple python class when complete