Is there a way to apply a git patch to a repository using REST Api?

I do some commits using REST Api.
This works fine, but some of the files are large while only a small number of lines are changed.
Thus the JSON object to commit the changes gets very big. A better approach would be to submit only the diff via ‘git apply changes.patch’, but instead of using git directly I would prefer a REST Api solution. Is this possible?

Thanks a lot!
Peter