We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
ghroboon
6 years agoExplorer | Level 3
update_content
Hi
I am trying to modify a .txt file's content using update_content method .
while doing this I get this error:
{"error_summary": "invalid_access_token/..", "error": {".tag": "invalid_access_to...
Greg-DB
Dropbox Community Moderator
6 years ago[Cross-linking for reference: https://stackoverflow.com/questions/63030833/update-content-of-a-cloud-file-with-dropbox-api ]
A ".txt" file wouldn't be considered a cloud doc, so you should just use the normal file endpoints to interact with it. For example, to upload a new version, you should use /2/files/upload:
https://www.dropbox.com/developers/documentation/http/documentation#files-upload
ghroboon
6 years agoExplorer | Level 3
Thank you for your soloution
but the problem is that I need to just UPDATE a file, it doesn't matter what's it extention for me.
Do you have any other soloutions?
- Greg-DB6 years ago
Dropbox Community Moderator
Yes, you should use /2/files/upload to update a file. That will work for .txt as well as other extensions.
About Discuss Dropbox Developer & API
Make connections with other developers
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!