GRESB / api-docs

http://gresb.github.io/api-docs/
3 stars 0 forks source link

Delete Asset problem on gresb.com #25

Closed EmilTemirov closed 9 years ago

EmilTemirov commented 9 years ago

Hi! I'm trying to delete an Asset via API on gresb.com, but it doesn't work. I sent following POST request to https://gresb.com/api/responses/3356/asset_level_data?access_token=MY_ACCESS_TOKEN:

{
  "buildings": [
    {
      "partners_id": "GCAE8Ca-T2i1IXp5bzbnnQ",
      "_destroy": true
    }
  ]
}

But the Asset is not deleted. The same action on api-sanbox.gresb.com works fine.

EmilTemirov commented 9 years ago

I figured it out, I forgot to set Content-Type: application/json. Please, do describe this in the documentation.