How to update the repo tree with the api

I am looking for something like:

POST “/repos/{owner}/{repo}/git/trees/{sha}” {tree_data…}