Error when adding a Device via API

Hi,
I have not been able to add a device to my product using the Cloud API. I always get this error: TypeError: Cannot call method ‘equals’ of undefined. Here is an example:

http --form POST https://api.particle.io/v1/devices Authorization:"Bearer <redacted4security>" id=370046000947353138383138
HTTP/1.1 404 Not Found
Access-Control-Allow-Origin: *
Connection: keep-alive
Content-Length: 94
Content-Type: application/json; charset=utf-8
Date: Mon, 20 Jun 2016 03:28:02 GMT
Server: nginx

{
    "errors": [
        "TypeError: Cannot call method 'equals' of undefined"
    ],
    "ok": false
}

Any clues of what I could be doing wrong?

Thanks,
Alex

Yes at times the errors the API returns can be uninformative at best. Here’s to hoping they improve!

It seems in my case the error was that I was trying to claim a device that did not exist in my product list yet.