Create or edit liquid template from api

Is there a way to do this? I know there use to be the assets api but wondering if there is a way I can have my app create a liquid template for our users.

I suggest using something like this:

Luke, thanks this does seem like the answer. I will take a deeper dive in a week or two.