cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Check out the Dropbox cheat sheet for getting started in 2021 here!

Discuss Dropbox Developer & API

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

update_content

update_content

Explorer | Level 3

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 3

Re: update_content

Dropboxer

[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

Re: update_content

Explorer | 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?

 

Re: update_content

Dropboxer

Yes, you should use /2/files/upload to update a file. That will work for .txt as well as other extensions.

Polls
Are you starting new work habits this year?

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?