cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
What’s new: end-to-end encryption, Replay and Dash updates. Find out more about these updates, new features and more here.

Discuss Dropbox Developer & API

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Re: File properties Add Files

File properties Add Files

Dinesh K
Explorer | Level 3
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 2

Здравко
Legendary | 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-DB
Dropbox Staff

@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.

Need more support?