I'd like to change the query of an analysis and upload the analysis. The documentation notebooks show how to extract the queries but not how to change them or upload them.
Is there a way to change the analysis object directly or do you use the backup_content method for this.
I find the working with the extracted json files a hassle since they are very nested and use the same keys. I've tried finding the components and their "path" recursively but that didn't work as desired. I haven't tried importing it with pandas. Any tips here are appreciated.
For manipulating the analysis directly, I imagined something like this:
analysis.draft.components["component_name"].queries = myquery
But that didn't work.
Also I found some references to older notebooks "https://python.celonis.cloud/docs/pycelonis/en/latest/notebooks/99_Use_Case_Copy_Analysis.html 50"
Are those still around?
All the best,
Saša