cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
We've been busy working on some major updates to the Community, so check out what's changing, what’s staying the same and what you can expect from the Dropbox Community right here.

Discuss Dropbox Developer & API

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

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?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
  • User avatar
    Здравко Legendary | Level 20
What do Dropbox user levels mean?