Is it possible to edit a File via a Rest Endpoint

Is there an endpoint where I can update a file?
Thx in advance

https://docs.github.com/en/rest/reference/repos#create-or-update-file-contents