Is it possible to edit existing posts using API?

I’m interested in making an automation that would be helpful for personal use and the main task is to be editing posts that I already made in the past. Just wondering if it’s possible

There isnt a way to edit posts through the public api.