Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
hi, i'm trying to delete a file inside an app folder using HTTP POST request in UNITY,
i'm having no problem to delete file through the Dropbox API explorer,
but in UNITY receiving an error:
"Error in call to API function "files/delete_v2": request body: could not decode input as JSON"
here is the request form:
URL: https://api.dropboxapi.com/2/files/delete_v2
headers:
'Authorization: Bearer my_super_secret_token'
'Content-Type: application/json'
'data: {"path":"/DEV_TEST1.mp4"}'
what am i doing wrong?
hey @DeathApocalypse,
Are you possibly including the data as an HTTP header? The JSON payload needs to be the actual body/data content of the POST request, not included in the headers.
-Chuck
fixed it, now it works. thanks for the quick response!
Hi there!
If you need more help you can view your support options (expected response time for a 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!