You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

SteveBendOR's avatar
SteveBendOR
New member | Level 2
7 years ago

Overwrite a File

Folks; I'm brand new and just assessing the API but have this question: I see that Dropbox API does not directly support appending text to an existing file. If I want to accomplish that task it wo...
  • Greg-DB's avatar
    7 years ago

    Yes, the API unfortunately doesn't offer a way to append directly (I'll send this along as a feature request though), so you'd need to download and upload the edited content.

    First, to download the existing file, you would use /2/files/download.

    After you make your modifications locally, you would then upload the new version using /2/files/upload.

    Those are links to the documentation for the HTTPS endpoints themselves, but we recommend using one of the official SDKs if possible. Those have corresponding native methods for the HTTPS endpoints.