Can you change node properties and save it in the flow.json file with the runtime API?

I would like to change some node properties and save it in the flow.json with the runtime API, similar to when I change the properties in the editor and click the deploy button.
Is it possible?