Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
David W.152
10 years agoNew member | Level 1
API v2 upload_session_finish with mode:update 400 error
app permission type: App folder
API version: dropbox API v2
description: API "upload_session_finish" with mode:update error
------
Have no idea how the "update mode" works (how it works with ...
David W.152
10 years agoNew member | Level 1
curl -X POST https://content.dropboxapi.com/2-beta-2/files/upload_session/finish --header 'Authorization: Bearer <token>' --header 'Content-Type: application/octet-stream' --header 'Dropbox-API-Arg: {"cursor":{"session_id":"<session_id>","offset":1048576},"commit":{"path":"/test_upload2.png","mode": {"update": "aaa"}}}'
Error in call to API function "files/upload_session/finish": HTTP header "Dropbox-API-Arg": commit.mode: missing '.tag' key
----------
curl -X POST https://content.dropboxapi.com/2-beta-2/files/upload_session/finish --header 'Authorization: Bearer <token>' --header 'Content-Type: application/octet-stream' --header 'Dropbox-API-Arg: {"cursor":{"session_id":"<session_id>","offset":1048576},"commit":{"path":"/test_upload2.png","mode": {"update": "aaa", ".tag": "rev"}}}'
Error in call to API function "files/upload_session/finish": HTTP header "Dropbox-API-Arg": commit.mode: unknown tag 'rev'
-----------
Could you show me the document of this API?
But not this one: https://www.dropbox.com/developers/documentation/http#documentation-files-upload_session-finish
About Dropbox API Support & Feedback
Find help with the Dropbox API from 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!