Curious about A, B, C, and D drives? Learn what they mean and how to use them effectively with Dropbox in this handy guide! - check it out now!

Forum Discussion

Leon_NAM's avatar
Leon_NAM
Helpful | Level 5
3 years ago
Solved

/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...
  • Greg-DB's avatar
    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.