I am new to Box API. I am trying to upload a file, I get bad request.
This is the url I am trying to hit https://upload.box.com/api/2.0/files/content
request body is {"name" : "gg-1.jpg", "parent" : {"id": "0"} } // as I am trying to add file on the root in this call
also header is proper {Authorization: Bearer xxxxx} //xxxxx is some proper refresh token
It throws Bad request error.
Can anyone help me to figure out what's wrong?