POSTing to the /api/dashboards/db method returns ""Dashboard not found"

I have no dashboards defined, and trying to add one via the API fails, returning

{"message":"Dashboard not found","status":"not-found"}

The property is null (I’ve tried setting it to 0 as well)

Adding dashboards via the UI fails with the same error.

I’m running grafana 4.2.0 backed by postgres

Ok, I ended up giving up and nuking the database and starting again, it’s now all working. Not sure what happened there, but I assume the DB got into an untidy state