We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.
Forum Discussion
Leon_NAM
3 years agoHelpful | Level 5
/add_folder_member suddenly gets a 400 response
Hey there,
I have an automation where I...
1. Create a shared folder (inherited access)
2. Check if this folder was created successfully
3. Create a shared subfolder to the first fold...
- 3 years ago
The "request body: could not decode input as JSON" error should indicate that the value you're sending in the request body couldn't be successfully parsed as JSON.
In this case, that should be the value you have in the "data" field. Looking at that value, it seems the issue is that you have an extra \" at the end in \"\". That should just be a single \", to close the shared_folder_id field value.
In general, we recommend using some JSON library to build these strings whenever possible, as that will help avoid issues like that.
Greg-DB
Dropbox Staff
The "request body: could not decode input as JSON" error should indicate that the value you're sending in the request body couldn't be successfully parsed as JSON.
In this case, that should be the value you have in the "data" field. Looking at that value, it seems the issue is that you have an extra \" at the end in \"\". That should just be a single \", to close the shared_folder_id field value.
In general, we recommend using some JSON library to build these strings whenever possible, as that will help avoid issues like that.
Leon_NAM
3 years agoHelpful | Level 5
Thank you so much. That was it. I was focusing so much on this api call that I totally missed that the variable providing the shared folder ID was passing along an extra " symbol where it shouldn't.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,877 PostsLatest Activity: 12 months agoIf 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!