cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Whether you are transferring a single drive, a team or an entire organization, Movebot's cloud migration tool has been built to make your Dropbox migration simple - learn all about it here.

Discuss Dropbox Developer & API

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

update_content

update_content

ghroboon
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

Greg-DB
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

ghroboon
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

Greg-DB
Dropboxer

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

Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropboxer
  • User avatar
    ghroboon Explorer | Level 3
What do Dropbox user levels mean?
Need more support?