How to replace existing file in repository (xlsx)

Hi Team,

I am using rest API(c#) to work with Gitlab. I want replace existing xlsx file in repository. Can you please help me with some code snippet