I need to get json object from API, modify & post it using C# : Step 1) Calling an API with my credentials to log in.
Step 2) Once I am logged in I need to get a json object
Step 3) I need to ask user what new  objects need to be added to the json object and where it is to be added.
Step 4) I need to add those objects in original json object and then upload/post it.

I have tried using Windows application and console application in Visual studio 2019 using C# and Newtonsoft json library.

So my question is there a way I can do all these steps in sequence without repeating any of the steps like after I take input from user I don't want to make a request again to login.

I had created a console application in which I am calling a method/function called setBase() from main to perform all above steps. This function has async await call to get/post data from API but I need to add readline() function in main after the call to setBase() for await async call to work. Also console app. exits before taking input from user.