We Want to Hear From You! What Do You Want to See on the Community? Tell us here!
Forum Discussion
Dinesh K
4 years agoExplorer | Level 3
File properties Add Files
https://api.dropboxapi.com/2/file_properties/properties/add
While adding the file to the Dropbox via postman by the above URL its throwing the error as below mentioned.
Error in call to API function "file_properties/properties/add": request body: could not decode input as JSON.
2 Replies
- Здравко4 years agoLegendary | Level 20
Dinesh K wrote:
... request body: could not decode input as JSON.Hi Dinesh K,
As mentioned in /2/file_properties/properties/add documentation, parameters has to be passed within the call body and formatted in JSON. According to the posted error message, that's not the case (i.e. your parameters are NOT formatted properly). Did you check this? If you are not sure, post your request body (or entire query - whatever is easier for you).
Hope this gives direction.
- Greg-DB4 years ago
Dropbox Community Moderator
Dinesh K Здравко is correct, you'll need to make sure you're passing valid JSON in the request body for this call. We generally recommend using a JSON library to build that JSON to make sure it's valid. You can also use the API Explorer for testing/prototyping such calls.
About Discuss Dropbox Developer & API
Make connections with other developers814 PostsLatest Activity: 3 days ago
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 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!