We Want to Hear From You! What Do You Want to See on the Community? Tell us here!
Forum Discussion
ghroboon
5 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_token"}}
I think this is due to my parameter "actor_tokens" and I don't know how should I retrieve this token. Does anybody know where should I find it?
Thanks
3 Replies
- Greg-DB5 years ago
Dropbox Community Moderator
[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
- ghroboon5 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-DB5 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 developers814 PostsLatest Activity: 3 days ago
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 or Facebook.
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!