Discuss Dropbox Developer & API
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.
@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.
@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.
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!