Hi,
To expand on @thor’s answer, you will need the
PUT https://api.yoursever.com/repository/{path}:data
endpoint. The path consists of the team name (URL encoded) or ID + the space name + any folder within the space where you want to put the items + the actual item name.
An example would be:
PUT https://api.yoursever.com/repository/my%20team/my%20space/my%20folder/my%20file.csv:data
To authenticate the call via Application Password, go to your user’s profile on Hub, then on the left side to Settings → Application Passwords and generate a new one there. This you can then use as basic authentication (username and password) in your REST calls.
Kind regards,
Alexander