We currently use Dropbox's Python SDK to overwrite existing file contents with the method .files_upload(). With give it the file id as a parameter along with the file content and it works:
client.files_upload(
file_contents,
file_id,
mode=WriteMode.overwrite
)
The problem is that, if the file is a shared one, it won't work. Is it even possible?